|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-11 10:32 UTC] tony2001@php.net
[2006-08-11 11:02 UTC] lars at schafft dot org
[2006-08-11 11:08 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 22:00:02 2025 UTC |
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