diff options
author | CHAILLAN Nicolas <nicos@php.net> | 2002-11-08 03:05:19 +0000 |
---|---|---|
committer | CHAILLAN Nicolas <nicos@php.net> | 2002-11-08 03:05:19 +0000 |
commit | 2838df58fb7f40893b532b93298ecdd368db651f (patch) | |
tree | 10405d4f9a60f738bf7cefb61ef22bc9c85d0b78 /ext/readline | |
parent | d28e3d9dc5d5e1705bfd5887d649f2a63d477bd9 (diff) | |
download | php-git-2838df58fb7f40893b532b93298ecdd368db651f.tar.gz |
Very little fixes
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/readline.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index eba06c3b6c..f30f3e5df7 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -77,7 +77,7 @@ zend_module_entry readline_module_entry = { NULL, PHP_RSHUTDOWN(readline), NULL, - NO_VERSION_YET, + NO_VERSION_YET, STANDARD_MODULE_PROPERTIES }; @@ -87,8 +87,8 @@ ZEND_GET_MODULE(readline) PHP_MINIT_FUNCTION(readline) { - using_history(); - return SUCCESS; + using_history(); + return SUCCESS; } PHP_RSHUTDOWN_FUNCTION(readline) @@ -229,7 +229,7 @@ PHP_FUNCTION(readline_add_history) pval **arg; int ac = ZEND_NUM_ARGS(); - if (ac < 1 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) { + if (ac != 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_string_ex(arg); @@ -246,7 +246,7 @@ PHP_FUNCTION(readline_clear_history) { int ac = ZEND_NUM_ARGS(); - if (ac < 0 || ac > 0) { + if (ac != 0) { WRONG_PARAM_COUNT; } |