Bug #81042 [Opn->Fbk]: open_basedir does not work as it should
Edit report at https://bugs.php.net/bug.php?id=81042&edit=1
ID: 81042
Updated by: requinix@php.net
Reported by: bugs-php dot a2 at x25 dot pl
Summary: open_basedir does not work as it should
-Status: Open
+Status: Feedback
Type: Bug
Package: *Directory/Filesystem functions
PHP Version: 7.4.19
Block user comment: N
Private report: N
New Comment:
Does public_html/test exist?
Previous Comments:
------------------------------------------------------------------------
[2021-05-14 23:35:43] bugs-php dot a2 at x25 dot pl
Description:
------------
open_basedir does not work as it should:
Test script:
---------------
<?
ini_set("open_basedir","/home/naox/public_html/test");
is_dir("/home/naox/public_html/test");
Actual result:
--------------
Warning: is_dir(): open_basedir restriction in effect. File(/home/naox/public_html/test) is not
within the allowed path(s): (/home/naox/public_html/test/) in /home/naox/public_html/a.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81042&edit=1
Thread (7 messages)