From c98d373eb62df9abbfe0cccb6d20c5e00745e003 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 23 Apr 2014 20:33:16 +0200 Subject: [PATCH] Fix strict array comparison Fixes Symfony test failures --- Zend/zend_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.40.0