X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_env_response.c;h=d88fb72841386e6eec7372ace3c1783f62fd3ea6;hb=ea53d5037a6b49f80c0220ff55d3e07ba14baa3b;hp=c3cf80b891a4bd7a6fd37144e7f04863ad0192b1;hpb=305ac2f007710b684d96b05f33964b4f6a4e3e4d;p=m6w6%2Fext-http 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); }