php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62223 require and open_basedir issue
Submitted: 2012-06-04 10:59 UTC Modified: 2012-06-05 02:19 UTC
From: chersovani at gmail dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.3.13 OS: linux slackware
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chersovani at gmail dot com
New email:
PHP Version: OS:

 

 [2012-06-04 10:59 UTC] chersovani at gmail dot com
Description:
------------
it seems that the require statement does not correctly evaluate the allowed path
This issue is not present on php 5.3.10

Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/demo.xxx.com/) in /var/www/demo.xxx.com/lib/class/PHPTAL.php on line 1205
/var/www/demo.xxx.com/tmp/tpl_4fbe4fdc_search_m_KDNhel2T27LSiZgngKNA.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-04 13:19 UTC] rasmus@php.net
Is /var/www/demo.xxx.com a symlink to somewhere else?
 [2012-06-04 13:19 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-06-04 14:53 UTC] chersovani at gmail dot com
-Status: Feedback +Status: Open
 [2012-06-04 14:53 UTC] chersovani at gmail dot com
nope its a directory

same configuration, same php scripts, same php.ini

5.3.10 works with no warnings
5.3.13 lots of open_basedir warnings

must be changed something in the php open_basedir implementation
 [2012-06-04 15:08 UTC] laruence@php.net
could you give us a complete reproduce script?
 [2012-06-04 15:57 UTC] chersovani at gmail dot com
I debugged this issue

this is related to eaccelerator implementation

Thanks
 [2012-06-05 02:19 UTC] laruence@php.net
-Status: Open +Status: Not a bug
 [2012-06-05 02:19 UTC] laruence@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 23:01:34 2025 UTC