summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/sapi_apache2.c
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 /sapi/apache2handler/sapi_apache2.c
parentfb06fa19e35e7725935d128205a989c87f05cc0d (diff)
downloadphp-git-b3006ed2a549ff1f186e98294e29fe2b0eb64561.tar.gz
Fixed bug #38456 (Apache2 segfaults when virtual() is called in .php
ErrorDocument).
Diffstat (limited to 'sapi/apache2handler/sapi_apache2.c')
-rw-r--r--sapi/apache2handler/sapi_apache2.c2
1 files changed, 1 insertions, 1 deletions
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;
}