]> granicus.if.org Git - php/commitdiff
Fixed bug #25701 (On flush() set headers_sent in apache2handler)
authorIlia Alshanetsky <iliaa@php.net>
Thu, 2 Oct 2003 03:24:36 +0000 (03:24 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 2 Oct 2003 03:24:36 +0000 (03:24 +0000)
sapi/apache2handler/sapi_apache2.c

index ae9727700d66897c69d0307e936f49950245b3ad..b008fa213759eb9a7c5b90275d8aa3c98bcc3039 100644 (file)
@@ -257,6 +257,7 @@ php_apache_sapi_flush(void *server_context)
        brigade = ctx->brigade;
 
        r->status = SG(sapi_headers).http_response_code;
+       SG(headers_sent) = 1;
 
        /* Send a flush bucket down the filter chain. */
        bucket = apr_bucket_flush_create(r->connection->bucket_alloc);