nicos           Thu Nov  7 22:05:20 2002 EDT

  Modified files:              
    /php4/ext/readline  readline.c 
  Log:
  Very little fixes
  
  
Index: php4/ext/readline/readline.c
diff -u php4/ext/readline/readline.c:1.30 php4/ext/readline/readline.c:1.31
--- php4/ext/readline/readline.c:1.30   Wed Oct  9 14:59:15 2002
+++ php4/ext/readline/readline.c        Thu Nov  7 22:05:19 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: readline.c,v 1.30 2002/10/09 18:59:15 jan Exp $ */
+/* $Id: readline.c,v 1.31 2002/11/08 03:05:19 nicos Exp $ */
 
 /* {{{ includes & prototypes */
 
@@ -77,7 +77,7 @@
        NULL,
        PHP_RSHUTDOWN(readline),
        NULL, 
-    NO_VERSION_YET,
+       NO_VERSION_YET,
        STANDARD_MODULE_PROPERTIES
 };
 
@@ -87,8 +87,8 @@
 
 PHP_MINIT_FUNCTION(readline)
 {
-    using_history();
-       return SUCCESS;
+       using_history();
+       return SUCCESS;
 }
 
 PHP_RSHUTDOWN_FUNCTION(readline)
@@ -229,7 +229,7 @@
        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 @@
 {
        int ac = ZEND_NUM_ARGS();
 
-       if (ac < 0 || ac > 0) {
+       if (ac != 0) {
                WRONG_PARAM_COUNT;
        }
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to