From c7ef31aefb6f127af1586330b31ffc00e0a6e949 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 7 Jan 2009 18:34:18 +0000 Subject: - Checking 0 param in the new way [only in this branch] --- main/output.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'main') 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) { -- cgit v1.2.1