|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-27 23:31 UTC] php at mbant dot de
[2004-09-28 15:53 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 17:00:02 2025 UTC |
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'.