]> granicus.if.org Git - php/commitdiff
remove ARG_COUNT(ht)
authorSterling Hughes <sterling@php.net>
Sun, 9 Sep 2001 11:03:31 +0000 (11:03 +0000)
committerSterling Hughes <sterling@php.net>
Sun, 9 Sep 2001 11:03:31 +0000 (11:03 +0000)
# Is there any reason that the set_compare_func call is passed SORT_STRING
# instead of SORT_REGULAR??

ext/standard/array.c

index 83942db40931c81f2fbd927018057f6f6ad9780d..17726cf42216ab951a0f44dbcd9c52c74c03caf0 100644 (file)
@@ -2251,7 +2251,7 @@ PHP_FUNCTION(array_unique)
        Bucket *p;
        int i;
 
-       if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
+       if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
        target_hash = HASH_OF(*array);