MFB: Fixed bug #47937 (system() calls sapi_flush() regardless of output

buffering)
This commit is contained in:
Ilia Alshanetsky 2009-04-19 15:00:11 +00:00
parent 1c4b26258e
commit 8b72164991

View File

@ -112,7 +112,9 @@ PHPAPI int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_
if (type == 1) {
PHPWRITE(buf, bufl);
sapi_flush(TSRMLS_C);
if (OG(ob_nesting_level) < 1) {
sapi_flush(TSRMLS_C);
}
} else if (type == 2) {
/* strip trailing whitespaces */
l = bufl;