From: tomsommer
Operating system: Linux
PHP version: 5.2.15
Package: Safe Mode/open_basedir
Bug Type: Bug
Bug description:open_basedir broken in PHP 5.3.15, denies all access to files
Description:
------------
The fix for CVE-2010-3436 broke open_basedir
Might also affect PHP 5.3.4
consider
php_admin_value open_basedir
"/var/www/www.example.dk/:/var/www/tmp/:/usr/local/bin/safe/"
The DocumentRoot of the site is "/var/www/www.example.dk/www/"
Opening /var/www/www.example.dk/www/index.php (http://example.dk/index.php)
triggers:
Warning: Unknown: open_basedir restriction in effect.
File(/var/www/www.example.dk/www/index.php) is not within the allowed
path(s): (/var/www/www.example.dk/:/var/www/tmp/:/usr/local/bin/safe/) in
Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in Unknown
on line 0
Warning: Unknown: open_basedir restriction in effect.
File(/var/www/www.example.dk/www/index.php) is not within the allowed
path(s): (/var/www/www.example.dk/:/var/www/tmp/:/usr/local/bin/safe/) in
Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in Unknown
on line 0
Fatal error: Unknown: Failed opening required
'/var/www/www.example.dk/www/index.php'
(include_path='.:/usr/local/lib/php') in Unknown on line 0
--
Edit bug report at http://bugs.php.net/bug.php?id=53514&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53514&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53514&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53514&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53514&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53514&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53514&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53514&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53514&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53514&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53514&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53514&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53514&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53514&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53514&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53514&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53514&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53514&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53514&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53514&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53514&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53514&r=mysqlcfg