]> granicus.if.org Git - php/commitdiff
Correct a copy-n-paste bug. Spotted by Michael Sisolak <msisolak@yahoo.com>
authorWez Furlong <wez@php.net>
Thu, 31 Oct 2002 08:23:55 +0000 (08:23 +0000)
committerWez Furlong <wez@php.net>
Thu, 31 Oct 2002 08:23:55 +0000 (08:23 +0000)
ext/com/COM.c

index 7c923f40dc28993446570ec17122476dc0c4215b..c1c4f130a15c7c398a3796463ab1f433925042cd 100644 (file)
@@ -1710,7 +1710,7 @@ PHP_FUNCTION(com_propget)
        int arg_count = ZEND_NUM_ARGS();
        VARIANT *var_result;
 
-       if (arg_count<3) {
+       if (arg_count < 2) {
                ZEND_WRONG_PARAM_COUNT();
        }
        arguments = (zval **) emalloc(sizeof(pval *)*arg_count);