From: Felipe Pena Date: Wed, 7 Jan 2009 18:34:18 +0000 (+0000) Subject: - Checking 0 param in the new way [only in this branch] X-Git-Tag: php-5.3.0beta1~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7ef31aefb6f127af1586330b31ffc00e0a6e949;p=php - Checking 0 param in the new way [only in this branch] --- diff --git a/main/output.c b/main/output.c index 590dcc4581..28a6cea1a4 100644 --- a/main/output.c +++ b/main/output.c @@ -558,11 +558,10 @@ static int php_ob_list_each(php_ob_buffer *ob_buffer, zval *ob_handler_array) */ PHP_FUNCTION(ob_list_handlers) { - if (ZEND_NUM_ARGS()!=0) { - ZEND_WRONG_PARAM_COUNT(); - RETURN_FALSE; + if (zend_parse_parameters_none() == FAILURE) { + return; } - + array_init(return_value); if (OG(ob_nesting_level)) { if (OG(ob_nesting_level)>1) {