#33987 [Ver->Csd]: .php file in ErrorDocument causes apache crash

From: Date: Thu, 18 Aug 2005 01:17:19 +0000
Subject: #33987 [Ver->Csd]: .php file in ErrorDocument causes apache crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83740@lists.php.net to get a copy of this message
 ID:               33987
 Updated by:       iliaa@php.net
 Reported By:      php dot net at sharpdreams dot com
-Status:           Verified
+Status:           Closed
 Bug Type:         Apache2 related
 Operating System: *
 PHP Version:      5CVS-2005-08-03
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2005-08-17 09:59:46] sniper@php.net

This happens if PHP has not done any requests -> it has not been
initialized properly -> as it's not initialized it's pretty futile to
try to execute a script blindly like it is done here:

sapi/apache2handler/sapi_apache2.c:564

See also the earlier block between lines 529-542
where parent_req is set.


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

[2005-08-14 16:14:23] sniper@php.net

It happens on Linux too if the child hasn't done any PHP requests yet.


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

[2005-08-14 05:27:53] sniper@php.net

It crashes if ErrorDocument refers to a PHP file.
Anything else and it works fine.

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

[2005-08-04 18:45:32] php dot net at sharpdreams dot com

There is no entry in either error_log or access_log (I presume it
crashes before logging). If I turn on the rewriting log, I can see the
request getting rewritten until it hits /error.php. I know it crashes
because it pops u the Visual Studio debuger.

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

[2005-08-04 09:11:07] sniper@php.net

What do you get in the apache error_log when this problem happens? Are
you sure it really crashes..?


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

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/33987

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


Thread (14 messages)

« previous php.bugs (#83740) next »