X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_env_response.c;h=d88fb72841386e6eec7372ace3c1783f62fd3ea6;hp=c3cf80b891a4bd7a6fd37144e7f04863ad0192b1;hb=7ba90c6d9d6843549fb9227d1a7aa05033e60772;hpb=305ac2f007710b684d96b05f33964b4f6a4e3e4d diff --git a/php_http_env_response.c b/php_http_env_response.c index c3cf80b..d88fb72 100644 --- a/php_http_env_response.c +++ b/php_http_env_response.c @@ -189,6 +189,9 @@ static size_t output(void *context, char *buf, size_t len TSRMLS_DC) if (!(php_output_get_status(TSRMLS_C) & PHP_OUTPUT_IMPLICITFLUSH)) { sapi_flush(TSRMLS_C); } +#else + php_end_ob_buffer(1, 1 TSRMLS_CC); + sapi_flush(TSRMLS_C); #endif php_http_sleep(r->throttle.delay); }