refactored client options
[m6w6/ext-http] / php_http_env_response.c
index c3cf80b891a4bd7a6fd37144e7f04863ad0192b1..d88fb72841386e6eec7372ace3c1783f62fd3ea6 100644 (file)
@@ -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);
        }