mirror of
https://github.com/php/php-src.git
synced 2024-09-27 04:47:22 +00:00
MFB: Fixed bug #47937 (system() calls sapi_flush() regardless of output
buffering)
This commit is contained in:
parent
1c4b26258e
commit
8b72164991
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user