]> granicus.if.org Git - php/commitdiff
One more place.
authorAndrei Zmievski <andrei@php.net>
Sun, 18 Jun 2000 03:45:08 +0000 (03:45 +0000)
committerAndrei Zmievski <andrei@php.net>
Sun, 18 Jun 2000 03:45:08 +0000 (03:45 +0000)
ext/standard/array.c

index ad08b3340e5fbc48f716c8c1f30f08ead4eceedd..e47b1c579885c3b26e84aa3deddb5c8570b926e5 100644 (file)
@@ -1060,7 +1060,7 @@ PHP_FUNCTION(in_array)
 
        target_hash = HASH_OF(*array);
        zend_hash_internal_pointer_reset_ex(target_hash, &pos);
-       while(zend_hash_get_current_data(target_hash, (void **)&entry) == SUCCESS) {
+       while(zend_hash_get_current_data_ex(target_hash, (void **)&entry, &pos) == SUCCESS) {
        compare_func(&res, *value, *entry);
                if (Z_LVAL(res) == 1) {
                        RETURN_TRUE;