From b3006ed2a549ff1f186e98294e29fe2b0eb64561 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 9 Nov 2006 19:10:13 +0000 Subject: Fixed bug #38456 (Apache2 segfaults when virtual() is called in .php ErrorDocument). --- sapi/apache2handler/sapi_apache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/apache2handler') diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index 4cb12cb86f..b5818f8385 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -574,7 +574,7 @@ zend_first_try { } /* check if comming due to ErrorDocument */ - if (parent_req && parent_req->status != HTTP_OK) { + if (parent_req && parent_req->status != HTTP_OK && strcmp(r->protocol, "INCLUDED")) { parent_req = NULL; goto normal; } -- cgit v1.2.1