From:             modulator at mail dot ru
Operating system: Windows
PHP version:      5.2.10
PHP Bug Type:     Safe Mode/open_basedir
Bug description:  Modulator

Description:
------------
Hello!
At me such problem with “open_basedir” and “include_path”:
Here options of one of hosts in a file: httpd-vhosts.conf
127.0.0.1:80 and localhost.ru - are replaced, on present URL

<VirtualHost 127.0.0.1:80>
ServerName schet.localhost.ru
ServerAlias www.schet.localhost.ru
ServerAdmin ad...@localhost.ru
DocumentRoot /Home/localhost.ru/public_schet/
ErrorLog /Home/localhost.ru/logs/schet.localhost.ru_Error.log
CustomLog /Home/localhost.ru/logs/schet.localhost.ru_Access.log common
PHP_Admin_Value error_log "/Home/localhost.ru/logs/PHP_schet_Errors.log"
PHP_Admin_Value open_basedir "/Home/localhost.ru/;/Home/.includes/"
PHP_Admin_Value include_path
"/Home/localhost.ru/.includes/;/Home/.includes/"
PHP_Admin_Value doc_root "/Home/localhost.ru/"
PHP_Admin_Value upload_tmp_dir "/Home/localhost.ru/temp/"
PHP_Admin_Value session.save_path "/Home/localhost.ru/temp/"
</VirtualHost>

Are correctly specified: “PHP_Admin_Value open_basedir” and
”PHP_Admin_Value include_path” for the given host.
By some calls of a file “schet.php” the allocated:
”/Home/localhost.ru/public_schet/schet.php” 
That corresponds: (PHP_Admin_Value open_basedir
"/Home/localhost.ru/;/Home/.includes/") there is an error:

PHP Warning: Unknown: open_basedir restriction in effect. File
(/Home/localhost.ru/public_schet/schet.php) is not within the allowed path
(s): (/Home/localhost.ru/.includes/;/Home/.includes/) in Unknown on line 0

Because “open_basedir” reads out the data “PHP_Admin_Value
include_path”???!!! 

The same errors occur and to other hosts.

Reproduce code:
---------------
[28-Jul-2009 14:25:23] PHP Warning: Unknown: open_basedir restriction in
effect. File(/Home/localhost.ru/public_schet/schet.php) is not within the
allowed path(s): (/Home/localhost.ru/.includes/;/Home/.includes/) in
Unknown on line 0
[28-Jul-2009 14:25:23] PHP Warning: Unknown: failed to open stream:
Operation not permitted in Unknown on line 0
[28-Jul-2009 14:25:23] PHP Fatal error: Unknown: Failed opening required
'/Home/localhost.ru/public_schet/schet.php'
(include_path='/Home/.includes/') in Unknown on line 0


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

Reply via email to