From:             php at mbant dot de
Operating system: Debian Woody
PHP version:      4.3.9
PHP Bug Type:     Filesystem function related
Bug description:  file_exists() returns false in safe_mode even if file in 
safe_mode_include_dir

Description:
------------
When safe_mode = on, file_exists() returns false for files not belonging
to the same user, even if a file is in safe_mode_include_dir.

notes: 
* this did work with version 4.3.8
* it does not matter if PHP is run as CGI, Apache or CLI.

example: 

--- php.ini ---

safe_mode = On

;[...]
safe_mode_include_dir = ".:/usr/share/php:/usr/local/lib/mbant"

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






Reproduce code:
---------------
<?
    $a = file_exists('/usr/share/php/DB.php'); // returns false
?>


Expected result:
----------------
$a will be 'false'.


-- 
Edit bug report at http://bugs.php.net/?id=30259&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30259&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30259&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30259&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30259&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30259&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30259&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30259&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30259&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30259&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30259&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30259&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30259&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30259&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30259&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30259&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30259&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30259&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30259&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30259&r=mysqlcfg

Reply via email to