php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49229 open_basedir string gets modified...
Submitted: 2009-08-12 02:51 UTC Modified: 2009-08-12 14:49 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: glenn dot larsen at gmail dot com Assigned:
Status: Not a bug Package: Safe Mode/open_basedir
PHP Version: 5.3.0 OS: RHEL 5.3
Private report: No CVE-ID: None
 [2009-08-12 02:51 UTC] glenn dot larsen at gmail dot com
Description:
------------
After a restart of my web server (apache 2.2.3-22), everything is running smoothly. However, after some request (10-30 - images counted), open_basedir gets changed... and php stops serving content, since it thinks the page its outside the allowed path...

from my /etc/php.ini
   open_basedir = /data/customers/

this starts showing up in my log file, when php "stops" working;

[Wed Aug 12 04:38:58 2009] [error] [client xx.xx.xx.xx] PHP Warning:  Unknown: open_basedir restriction in effect. File(/data/customers/XXXXXXXXXX/index.php) is not within the allowed path(s): (\xd8\xa0\xd2\ba/customers/XXXXXXXXXX/) in Unknown on line 0

... as you probably see "/data/customers/" has been replaced with "\xd8\xa0\xd2\ba/customers/"


Reproduce code:
---------------
-

Expected result:
----------------
-

Actual result:
--------------
-

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-12 07:22 UTC] scottmac@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Pretty sure this is a duplicate of bug #48880
 [2009-08-12 13:18 UTC] glenn dot larsen at gmail dot com
Scott is right, its a duplicate of the bug #48880.. Sorry guys
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC