ID:               24248
 User updated by:  dkh-php at nighttide dot net
 Reported By:      dkh-php at nighttide dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: FreeBSD 4.8-STABLE
 PHP Version:      4.3.2/5.0.0b1
 New Comment:

./configure --prefix=/usr/local/apache2 --enable-mods-shared=most
--enable-ssl


Previous Comments:
------------------------------------------------------------------------

[2003-07-11 00:07:05] [EMAIL PROTECTED]

What was the configure line used to configure Apache2?


------------------------------------------------------------------------

[2003-06-18 21:57:07] dkh-php at nighttide dot net

It does not happen with Apache 1.3.27. Though the versions I have
installed are not completely congruent (no ssl in the older version for
instance.

I have not been able to recreate the problem with Apache2 and the same
version of PHP on a FreeBSD 4.8-RC install (slightly older source).
Will update both systems to the most current STABLE release and see if
the behavior occurs on both.

The behavior is consistant. Load the first page then load the second
page (lightly loaded server so the requests are sequential with nothing
intervening) and you get the problem. Reloading the second page a
couple of times will see the same result but after that the second page
loads as it should. 

Have tried compiling php without pth threads to no effect.

The outward appearance is that the php var overides are not being
cleared between page requests.

------------------------------------------------------------------------

[2003-06-18 18:20:04] [EMAIL PROTECTED]

Apache2 is not really ready for production. Could you please test and
see if this happens with Apache 1.3.27 ?

And does this happen randomly or..?


------------------------------------------------------------------------

[2003-06-18 16:10:40] dkh-php at nighttide dot net

Description:
------------
FreeBSD 4.8-STABLE
Apache 2.0.46
PHP 4.3.2 

PHP being used as module.

User 1 creates an .htaccess file in their dir at
/home/user1/WWW/sub/.htaccess. This file contains php var overides for
auto_prepend_file, auto_append_file, include_path etc.

User 2 has a simple index.php file - html tag, body tag, single text
line followed by a php invocation of phpinfo (happens with other pages
as well) then closing tags. No .htaccess file here.

User 1 stuff in /home/user1/WWW/sub/index.php works as expected

User 2 stuff in /home/user2/WWW/index.php, if loaded immediately after
/home/user1/WWW/sub/index.php will see User 1's auto_prepend_file and
auto_append_file. The local values from the phpinfo invocation shows
User 2's overrides.

Appears as if the apache session (or thread?) that serviced the first
request, doesn't clear out the local overrides before handling a new
request. Potentially dangerous.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24248&edit=1

Reply via email to