diff options
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/readline.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 22dc62011f..6ab6fbe559 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -339,12 +339,11 @@ 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(); array_init(return_value); |