]> granicus.if.org Git - php/commitdiff
- Checking 0 param in the new way [only in this branch]
authorFelipe Pena <felipe@php.net>
Wed, 7 Jan 2009 18:34:18 +0000 (18:34 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 7 Jan 2009 18:34:18 +0000 (18:34 +0000)
main/output.c

index 590dcc4581601c7a23d3f6373f4f1cd142886ad0..28a6cea1a4d9cc3d5c4f2aa43822ea36dc3ce5cd 100644 (file)
@@ -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) {