From: foobar Date: Fri, 2 Sep 2005 13:50:39 +0000 (+0000) Subject: Check the status properly X-Git-Tag: PRE_NEW_OCI8_EXTENSION~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51ec5ca6da97ae43afb69f06e76dd15d8d08df49;p=php Check the status properly --- diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index c5734c0116..aadf451226 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -538,7 +538,7 @@ zend_first_try { } else { parent_req = ctx->r; /* check if comming due to ErrorDocument */ - if (parent_req != HTTP_OK) { + if (parent_req && parent_req->status != HTTP_OK) { parent_req = NULL; goto normal; }