#48880 [Opn]: Random Appearing open_basedir problem

2009-07-29 Thread brwarner at rogers dot com
 ID:   48880
 User updated by:  brwarner at rogers dot com
 Reported By:  brwarner at rogers dot com
 Status:   Open
 Bug Type: Safe Mode/open_basedir
 Operating System: *
 PHP Version:  5.3SVN-2009-07-27 (snap)
 New Comment:

Sorry, I didn't know I had to change it to open, this is my first bug

report.
This bug still happens to mean, and it gets annoying especially when 
javascript is used to load other pages for information - as then 
javascript has a bunch of errors making the page appear wrong as
opposed 
to even showing an error message.


Previous Comments:


[2009-07-29 20:38:38] ninzya at inbox dot lv

I hit this bug quite frequently. I have noticed that it occurs after
some time while apache is running, even if you don't actually request
any pages. You can leave apache working for an hour, or two, and then
request any php file - the result is this bug. Maybe it is somehow
connected to PHP operations it does periodically (GC or something).

One thing is clear - open_basedir's path (string it is referring to) is
being corrupted and memory overwritten. Either it is done by overwriting
this memory, or by change of memory location open_basedir's string ptr
is pointing to.



[2009-07-26 07:17:07] duchesne7 at gmail dot com

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.)



[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.



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=48880edit=1



#48880 [Opn]: Random Appearing open_basedir problem

2009-07-12 Thread brwarner at rogers dot com
 ID:   48880
 User updated by:  brwarner at rogers dot com
 Reported By:  brwarner at rogers dot com
 Status:   Open
 Bug Type: Safe Mode/open_basedir
 Operating System: Windows Server 2003
 PHP Version:  5.3.0
 New Comment:

Yes, they also appear to have ASCII characters outside those of
letters, 
numbers, and symbols. Almost like it is being corrupted.


Previous Comments:


[2009-07-12 11:09:29] te at powie dot de

We noticed the same problem under Suse Linux + Apache2 + php 5.3.0. 
Warning:

Warning: Unknown: open_basedir restriction in effect.
File(/srv/www/web1/html/cms/mod/gb/index.php) is not within the allowed
path(s): (¶/www/web14/html/) in Unknown on line 0

The displayed allowed paths are random, from other vhosts on the
system!



[2009-07-10 18:27:02] brwarner at rogers dot com

In the httpd file the following line includes the virtual hosts file

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

In that file here is what the virtual host for that specific domain is

VirtualHost *:80
ServerName brwarner.co.cc
ServerAlias www.brwarner.co.cc 127.0.0.1
DocumentRoot C:/www/brwarner.co.cc
php_admin_value open_basedir 
C:\www\brwarner.co.cc;C:\svn;C:\Program 
Files\PHP\PEAR;C:\WINDOWS\Temp;C:\djgpp
php_admin_value short_open_tag Off
ErrorLog C:/www/logs/brwarner_error.log
ErrorDocument 404 /error404.php
/VirtualHost

I have several other virtual hosts with look practically idential.

I have never seen this in any other version of PHP besides 5.3.0 and 
not before I upgraded, and I have had these sites working for a while 
so if it was there I probably would have seen it.



[2009-07-10 18:22:00] j...@php.net

Is open_basedir set in httpd.conf or in some .htaccess file?
And does this happen _only_ with PHP 5.3.0 ?



[2009-07-10 18:18:27] brwarner at rogers dot com

I am using Apache version 2.2.11
I downloaded the VC6 Thread Safe Installer Binary from the windows PHP

download site, and these are the lines the installer placed into the 
httpd configuration file:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir C:/Program Files/PHP/
LoadModule php5_module C:/Program Files/PHP/php5apache2_2.dll
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL



[2009-07-10 18:10:25] j...@php.net

What apache version are you using? PHP as CGI or module? Which module?



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=48880edit=1



#48880 [Opn]: Random Appearing open_basedir problem

2009-07-12 Thread pajoye
 ID:   48880
 Updated by:   paj...@php.net
 Reported By:  brwarner at rogers dot com
 Status:   Open
 Bug Type: Safe Mode/open_basedir
 Operating System: Windows Server 2003
 PHP Version:  5.3.0
 New Comment:

not windows specific (given the comments)


Previous Comments:


[2009-07-12 15:03:03] brwarner at rogers dot com

Yes, they also appear to have ASCII characters outside those of
letters, 
numbers, and symbols. Almost like it is being corrupted.



[2009-07-12 11:09:29] te at powie dot de

We noticed the same problem under Suse Linux + Apache2 + php 5.3.0. 
Warning:

Warning: Unknown: open_basedir restriction in effect.
File(/srv/www/web1/html/cms/mod/gb/index.php) is not within the allowed
path(s): (¶/www/web14/html/) in Unknown on line 0

The displayed allowed paths are random, from other vhosts on the
system!



[2009-07-10 18:27:02] brwarner at rogers dot com

In the httpd file the following line includes the virtual hosts file

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

In that file here is what the virtual host for that specific domain is

VirtualHost *:80
ServerName brwarner.co.cc
ServerAlias www.brwarner.co.cc 127.0.0.1
DocumentRoot C:/www/brwarner.co.cc
php_admin_value open_basedir 
C:\www\brwarner.co.cc;C:\svn;C:\Program 
Files\PHP\PEAR;C:\WINDOWS\Temp;C:\djgpp
php_admin_value short_open_tag Off
ErrorLog C:/www/logs/brwarner_error.log
ErrorDocument 404 /error404.php
/VirtualHost

I have several other virtual hosts with look practically idential.

I have never seen this in any other version of PHP besides 5.3.0 and 
not before I upgraded, and I have had these sites working for a while 
so if it was there I probably would have seen it.



[2009-07-10 18:22:00] j...@php.net

Is open_basedir set in httpd.conf or in some .htaccess file?
And does this happen _only_ with PHP 5.3.0 ?



[2009-07-10 18:18:27] brwarner at rogers dot com

I am using Apache version 2.2.11
I downloaded the VC6 Thread Safe Installer Binary from the windows PHP

download site, and these are the lines the installer placed into the 
httpd configuration file:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir C:/Program Files/PHP/
LoadModule php5_module C:/Program Files/PHP/php5apache2_2.dll
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL



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=48880edit=1