From: Pierre Joye Date: Mon, 20 Apr 2009 06:36:05 +0000 (+0000) Subject: - use the new OB API (and fix build) X-Git-Tag: php-5.4.0alpha1~191^2~3900 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92c0740aaa56d179208020e05e04af771e2e5539;p=php - use the new OB API (and fix build) --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 352d349f57..1fd528f4b2 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -111,8 +111,9 @@ PHPAPI int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_ } if (type == 1) { + int ob_level; PHPWRITE(buf, bufl); - if (OG(ob_nesting_level) < 1) { + if ((php_output_handler_hook(PHP_OUTPUT_HANDLER_HOOK_GET_LEVEL, &ob_level TSRMLS_CC) == SUCCESS) && ob_level < 1) { sapi_flush(TSRMLS_C); } } else if (type == 2) {