ID:               38423
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lars at schafft dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         Safe Mode/open_basedir
 Operating System: Linux SuSE 9.2
 PHP Version:      5.1.4
 New Comment:

The /opt or /opt/cms directory is a symlink, right?


Previous Comments:
------------------------------------------------------------------------

[2006-08-11 10:30:52] lars at schafft dot org

Description:
------------
Trying to check if a file to include exists. Path, where file to be
checked, is in open_base_dir. But if the file does not exists, the
function throws a warning concerning open_basedir restrictions

Reproduce code:
---------------
if
(file_exists('/opt/cms/modules/stats/frontend/stats.parser.html.class.php'))
{
  echo 'found';
}

Expected result:
----------------
file_exists() returns false without a warning

Actual result:
--------------
Warning: file_exists() [function.file-exists]: open_basedir restriction
in effect.
File(/opt/cms/modules/stats/frontend/stats.parser.html.class.php) is
not within the allowed path(s):
(/srv/www/htdocs/web2:/usr/lib/php:/opt/cms


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38423&edit=1

Reply via email to