From: Nikita Popov Date: Wed, 23 Apr 2014 18:33:16 +0000 (+0200) Subject: Fix strict array comparison X-Git-Tag: POST_PHPNG_MERGE~412^2~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c98d373eb62df9abbfe0cccb6d20c5e00745e003;p=php Fix strict array comparison Fixes Symfony test failures --- diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 38e027d608..ffe71a6791 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -1655,7 +1655,7 @@ ZEND_API int zend_hash_compare(HashTable *ht1, HashTable *ht2, compare_func_t co HASH_UNPROTECT_RECURSION(ht2); return 1; /* That's not supposed to happen */ } - if (p2) break; + if (Z_TYPE(p2->val) != IS_UNDEF) break; idx2++; } if (p1->key == NULL && p2->key == NULL) { /* numeric indices */