From:             
Operating system: Windows 7
PHP version:      5.3SVN-2010-11-19 (SVN)
Package:          Safe Mode/open_basedir
Bug Type:         Bug
Bug description:open_basedir does not pass through files with matching path

Description:
------------
Right after installing PHP 5.3.4RC1 i get the following error:



[19-Nov-2010 08:47:47] PHP Warning:  Unknown: open_basedir restriction in
effect.
File(C:\Users\Dmitry\Repo\InnoForce\AMD\trunc\01_Code\public_html\index.php)
is not within the allowed path(s):
(C:/Users/Dmitry/Repo/InnoForce/AMD/trunc/01_Code/;C:/Windows/Temp) in
Unknown on line 0



[19-Nov-2010 08:47:47] PHP Warning:  Unknown: failed to open stream:
Operation not permitted in Unknown on line 0



[19-Nov-2010 08:47:47] PHP Fatal error:  Unknown: Failed opening required
'C:/Users/Dmitry/Repo/InnoForce/AMD/trunc/01_Code/public_html/index.php'
(include_path='.;C:\php5\pear') in Unknown on line 0



It was working with PHP 5.3.3.

Test script:
---------------
# open_basedir in apache config

php_admin_value open_basedir
"C:/Users/Dmitry/Repo/InnoForce/AMD/trunc/01_Code/;C:/Windows/Temp"



Expected result:
----------------
No errors

Actual result:
--------------
[19-Nov-2010 08:47:47] PHP Warning:  Unknown: open_basedir restriction in
effect.
File(C:\Users\Dmitry\Repo\InnoForce\AMD\trunc\01_Code\public_html\index.php)
is not within the allowed path(s):
(C:/Users/Dmitry/Repo/InnoForce/AMD/trunc/01_Code/;C:/Windows/Temp) in
Unknown on line 0



[19-Nov-2010 08:47:47] PHP Warning:  Unknown: failed to open stream:
Operation not permitted in Unknown on line 0



[19-Nov-2010 08:47:47] PHP Fatal error:  Unknown: Failed opening required
'C:/Users/Dmitry/Repo/InnoForce/AMD/trunc/01_Code/public_html/index.php'
(include_path='.;C:\php5\pear') in Unknown on line 0



-- 
Edit bug report at http://bugs.php.net/bug.php?id=53352&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53352&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53352&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53352&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53352&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53352&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53352&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53352&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53352&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53352&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53352&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53352&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53352&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53352&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53352&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53352&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53352&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53352&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53352&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53352&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53352&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53352&r=mysqlcfg

Reply via email to