|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-03 17:06 UTC] laruence@php.net
[2012-01-03 17:06 UTC] laruence@php.net
-Status: Open
+Status: Feedback
[2012-01-03 17:13 UTC] fernando at consultorpc dot com
-Status: Feedback
+Status: Open
[2012-01-03 17:13 UTC] fernando at consultorpc dot com
[2012-01-04 04:34 UTC] laruence@php.net
[2012-12-30 09:28 UTC] support at hostinghood dot com
[2013-05-29 12:03 UTC] 19982090 at atn dot ac dot at
[2021-05-20 12:09 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-05-20 12:09 UTC] cmb@php.net
[2021-05-30 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ If you try to access a file within a folder that has a dot, an open_basedir restriction warning will show up even if the folder is in the allowed paths list. Test script: --------------- <?php // Set open_basedir allowed paths to /home/example:/usr/lib/php:/tmp file_exists('/home/example/public_html/myfolder.example/file.php'); // This results in a open_basedir restriction warning Expected result: ---------------- No warning should show up and i should be able to access the file normally. Actual result: -------------- The test script results in: PHP Warning: file_exists() [<a href='function.file-exists'>function.file- exists</a>]: open_basedir restriction in effect. File(/home/example/public_html/myfolder.example/file.php) is not within the allowed path(s): (/home/example:/usr/lib/php:/tmp) in /home/example/public_html/test.php on line 3