]> granicus.if.org Git - php/commitdiff
- More suitable parameter checking
authorFelipe Pena <felipe@php.net>
Wed, 7 Jan 2009 22:54:43 +0000 (22:54 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 7 Jan 2009 22:54:43 +0000 (22:54 +0000)
ext/readline/readline.c

index f2f6e8cb0c3dbe8d181028e5a7071f4447646116..365bed4c7238016684275caf24e859f8d1fcacde 100644 (file)
@@ -339,10 +339,9 @@ PHP_FUNCTION(readline_clear_history)
 PHP_FUNCTION(readline_list_history)
 {
        HIST_ENTRY **history;
-       int ac = ZEND_NUM_ARGS();
 
-       if (ac) {
-               WRONG_PARAM_COUNT;
+       if (zend_parse_parameters_none() == FAILURE) {
+               return;
        }
 
        history = history_list();