From: Ilia Alshanetsky Date: Tue, 28 Jan 2003 16:34:21 +0000 (+0000) Subject: Fixed bug #17868 (more then the directive used to include X-Git-Tag: RELEASE_0_5~1383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=835e6481e4e37c7c8cc7dff22a593386b6a0f1ad;p=php Fixed bug #17868 (more then the directive used to include a PHP file would result in a crash). --- diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index b193d852b1..031b5e2fef 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -532,7 +532,9 @@ static int php_output_filter(ap_filter_t *f, apr_bucket_brigade *bb) php_apache_request_dtor(f TSRMLS_CC); - ctx->request_processed = 1; + if (!f->r->main) { + ctx->request_processed = 1; + } /* Delete the FILE bucket from the brigade. */ apr_bucket_delete(b);