#30259 [Opn]: file_exists() returns false in safe_mode even if file in safe_mode_include_dir

From: Date: Mon, 27 Sep 2004 21:31:52 +0000
Subject: #30259 [Opn]: file_exists() returns false in safe_mode even if file in safe_mode_include_dir
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66782@lists.php.net to get a copy of this message
ID: 30259 User updated by: php at mbant dot de Reported By: php at mbant dot de Status: Open Bug Type: Filesystem function related Operating System: Debian Woody PHP Version: 4.3.9 New Comment: in 'expected result', $a should of course be actually true, but is not. Previous Comments: ------------------------------------------------------------------------ [2004-09-27 23:28:16] php at mbant dot de 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 this bug report at http://bugs.php.net/?id=30259&edit=1

« previous php.bugs (#66782) next »