summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-11-09 19:10:13 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-11-09 19:10:13 +0000
commitb3006ed2a549ff1f186e98294e29fe2b0eb64561 (patch)
treef59d21b4a03a0f6d4131fc81e59ca96a0370f9c9
parentfb06fa19e35e7725935d128205a989c87f05cc0d (diff)
downloadphp-git-b3006ed2a549ff1f186e98294e29fe2b0eb64561.tar.gz
Fixed bug #38456 (Apache2 segfaults when virtual() is called in .php
ErrorDocument).
-rw-r--r--NEWS2
-rw-r--r--sapi/apache2handler/sapi_apache2.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6aef47ca31..2dff93c6de 100644
--- a/NEWS
+++ b/NEWS
@@ -49,6 +49,8 @@ PHP NEWS
(Ilia)
- Fixed bug #38536 (SOAP returns an array of values instead of an object).
(Dmitry)
+- Fixed bug #38456 (Apache2 segfaults when virtual() is called in .php
+ ErrorDocument). (Ilia)
- Fixed bug #33282 (Re-assignment by reference does not clear the is_ref flag)
(Ilia,Dmitry, Matt Wilmas)
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;
}