ID: 48880 Comment by: duchesne7 at gmail dot com Reported By: brwarner at rogers dot com Status: Feedback Bug Type: Safe Mode/open_basedir Operating System: * PHP Version: 5.3.0 New Comment:
I confirm this bug under Fedora 11 x64 with Apache 2.2.10 and PHP 5.3.0 (also tryed last SVN with no luck). Seems to be some sort of memory corruption since I sometimes see HTTP headers in the allowed paths, like: File(/home/cpanel/index.php) is not within the allowed path(s): (ww\tX-Powered-By: P) in Unknown on line 0 It happens whenever open_basedir is modified at runtime (either with php_admin_value in httpd.conf or with an extension that I use which reset open_basedir according to regex rules before script execution.) Previous Comments: ------------------------------------------------------------------------ [2009-07-25 16:06:26] server at grow-werbeagentur dot de Confirm this Bug. Still persists with 200907251430 went back to 5.2.10 now, cause this is very anyoing.. The weird thing though is, that I tested the 5.3.0 release on our dev server first with no errors at all but when installing it on our production servers, which are configured exactly the same as our dev, I get this random open_basedir error.. weird.. ------------------------------------------------------------------------ [2009-07-22 16:19:47] hristozov at gmail dot com The problem persists with 200907221430. ------------------------------------------------------------------------ [2009-07-22 14:56:39] rs at qcm dot cz Still no go. Tested with snapshot php5.3-200907221230. ------------------------------------------------------------------------ [2009-07-21 13:32:43] j...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2009-07-20 18:32:28] hristozov at gmail dot com The same problem - Apache 2.2.11 and PHP 5.3.0 on Linux 2.6.29. The configure options: './configure' \ '--with-apxs2=/www/bin/apxs' \ '--enable-mbstring' \ '--with-gd' \ '--enable-exif' \ '--with-mysql' \ '--with-zlib-dir=/usr/include' \ '--with-jpeg-dir=/usr/lib' \ '--with-freetype-dir=/usr/include' \ '--with-gettext=/usr/bin' \ '--with-curl' \ '--disable-cgi' \ The actual error: [Mon Jul 20 21:25:51 2009] [error] [client x.x.x.x] PHP Warning: Unknown: open_basedir restriction in effect. File(/path/to/blog/index.php) is not within the allowed path(s): (\xd4\xba-\b\xd4\xba-\b<\xf6\x93\b) in Unknown on line 0 [Mon Jul 20 21:25:51 2009] [error] [client x.x.x.x] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0 [Mon Jul 20 21:25:51 2009] [error] [client x.x.x.x] PHP Fatal error: Unknown: Failed opening required '/path/to/blog/index.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0 And the fragment from the Apache config: php_flag engine on php_value open_basedir "/path/to/blog/:/tmp" ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/48880 -- Edit this bug report at http://bugs.php.net/?id=48880&edit=1