From: Ilia Alshanetsky Date: Mon, 8 Mar 2004 03:15:45 +0000 (+0000) Subject: Fixed bug #27424 (headers missing on flush() in apache 2 SAPIs). X-Git-Tag: RELEASE_0_2_0~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c828007fdf90806bf1b174e0244a88f9e184b5e9;p=php Fixed bug #27424 (headers missing on flush() in apache 2 SAPIs). --- diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 22df068626..987be43e9c 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -243,7 +243,10 @@ php_apache_sapi_flush(void *server_context) if (!server_context) return; + sapi_send_headers(TSRMLS_C); + ctx->r->status = SG(sapi_headers).http_response_code; + SG(headers_sent) = 1; f = ctx->f; diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index ddafafadd9..649e55c3f3 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -256,6 +256,8 @@ php_apache_sapi_flush(void *server_context) r = ctx->r; brigade = ctx->brigade; + sapi_send_headers(TSRMLS_C); + r->status = SG(sapi_headers).http_response_code; SG(headers_sent) = 1;