X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;fp=http_api.c;h=4f1b7e387e9b6283d2d2c41bc459d02a39bae645;hp=aca90e669f5adeed209212cb1fbbc86bb34827e1;hb=ac73b47af7c48397dc9a6e07872062b3c3619813;hpb=e97eb4951a19e934d25e9c5c2f147f4b009bbdfe diff --git a/http_api.c b/http_api.c index aca90e6..4f1b7e3 100644 --- a/http_api.c +++ b/http_api.c @@ -253,7 +253,7 @@ STATUS _http_exit_ex(int status, char *header, char *body, zend_bool send_header return FAILURE; } - if (!OG(ob_lock)) { + if (!php_ob_handler_used("zlib output compression") && !php_ob_handler_used("ob_gzhandler") && !OG(ob_lock)) { php_end_ob_buffers(0 TSRMLS_CC); } if ((SUCCESS == sapi_send_headers(TSRMLS_C)) && body) {