#24521 [NEW]: chdir() ignores php_admin_value open_basedir
| From: | jjarven at softers dot net | Date: | Mon, 07 Jul 2003 10:42:35 +0000 |
| Subject: | #24521 [NEW]: chdir() ignores php_admin_value open_basedir | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-43352@lists.php.net to get a copy of this message | ||
From: jjarven at softers dot net
Operating system: Linux 2.4.18
PHP version: 4.3.2
PHP Bug Type: *Directory/Filesystem functions
Bug description: chdir() ignores php_admin_value open_basedir
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 bug report at http://bugs.php.net/?id=24521&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24521&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24521&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24521&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24521&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24521&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24521&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24521&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24521&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24521&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24521&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24521&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24521&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24521&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24521&r=gnused