]> granicus.if.org Git - php/commitdiff
New way for check void parameters
authorFelipe Pena <felipe@php.net>
Tue, 4 Mar 2008 23:09:02 +0000 (23:09 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 4 Mar 2008 23:09:02 +0000 (23:09 +0000)
Zend/zend_builtin_functions.c

index 3e3ebec1f6c264b46c3a8bc28ca239b89e07a1e8..10644661f148aefc7088c27a574480d0b676b561 100644 (file)
@@ -1827,8 +1827,8 @@ ZEND_FUNCTION(debug_print_backtrace)
        zval *arg_array = NULL;
        int indent = 0;
 
-       if (ZEND_NUM_ARGS()) {
-               ZEND_WRONG_PARAM_COUNT();
+       if (zend_parse_parameters_none() == FAILURE) {
+               return;
        }
 
        ptr = EG(current_execute_data);