]> granicus.if.org Git - php/commitdiff
Fixed bug #17868 (more then the <!--include--> directive used to include
authorIlia Alshanetsky <iliaa@php.net>
Tue, 28 Jan 2003 16:34:21 +0000 (16:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 28 Jan 2003 16:34:21 +0000 (16:34 +0000)
a PHP file would result in a crash).

sapi/apache2filter/sapi_apache2.c

index b193d852b1b691a651f475456dd5a483415d2ae4..031b5e2fef1b64a262246d84c4958a0ccfcef589 100644 (file)
@@ -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);