From 2838df58fb7f40893b532b93298ecdd368db651f Mon Sep 17 00:00:00 2001 From: CHAILLAN Nicolas Date: Fri, 8 Nov 2002 03:05:19 +0000 Subject: [PATCH] Very little fixes --- ext/readline/readline.c | 10 +++++----- 1 file 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; } -- 2.50.1