#24521 [Bgs->Opn]: chdir() ignores php_admin_value open_basedir
| From: | sniper@php.net | Date: | Mon, 07 Jul 2003 10:53:45 +0000 |
| Subject: | #24521 [Bgs->Opn]: chdir() ignores php_admin_value open_basedir | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355075@lists.php.net to get a copy of this message | ||
ID: 24521
Updated by: sniper@php.net
Reported By: jjarven at softers dot net
-Status: Bogus
+Status: Open
-Bug Type: *Directory/Filesystem functions
+Bug Type: Documentation problem
Operating System: Linux 2.4.18
PHP Version: 4.3.2
New Comment:
It might be nice to mention this in the docs too. :)
Previous Comments:
------------------------------------------------------------------------
[2003-07-07 05:50:15] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
open_basedir restricts opening files. If that is working then there is
no bug here at all.
------------------------------------------------------------------------
[2003-07-07 05:42:35] jjarven at softers dot net
Description:
------------
Apache 1.3.27
httpd.conf:
php_admin_value open_basedir /home/www/
- phpinfo() reports local value in effect to be /home/www/
Reproduce code:
---------------
chdir('/etc');
echo getcwd();
Expected result:
----------------
"open_basedir restriction in effect"
Actual result:
--------------
Will output: /etc
I tested opendir(), readdir() and readfile() and they behave correctly,
thus are not able to read anything outside open_basedir.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24521&edit=1