|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-08-10 07:09 UTC] requinix@php.net
-Status: Open
+Status: Duplicate
[2020-08-10 07:09 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ if used filename as folder in your path the file system function(is_dir,is_file,file_exists and etc ...) shows a restriction warning. i thinks , this is a bug. Test script: --------------- run this codes : root# mkdir /test touch /test/empty echo "<?php var_dump(is_file('/test/empty/foo/bar'));" > /test/index.php echo "open_basedir = /test" > /test/php.ini then : root# php -c /test/php.ini /test/index.php Warning: is_file(): open_basedir restriction in effect. File(/test/empty/foo/bar) is not within the allowed path(s): (/test) in /test/index.php on line 1 bool(false) Expected result: ---------------- no a restriction warning. Actual result: -------------- shows a restriction warning.