From: Dmitry Stogov Date: Thu, 22 Sep 2016 14:58:45 +0000 (+0300) Subject: Removed impossible condition X-Git-Tag: php-7.2.0alpha1~1232^2~54^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42db69058a2695d91e667b3817ebb52a037850e0;p=php Removed impossible condition --- diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 622d94a5f5..be048725d9 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -730,9 +730,6 @@ static zend_always_inline zval *_zend_hash_index_add_or_update_i(HashTable *ht, ht->pDestructor(&p->val); } ZVAL_COPY_VALUE(&p->val, pData); - if ((zend_long)h >= (zend_long)ht->nNextFreeElement) { - ht->nNextFreeElement = h < ZEND_LONG_MAX ? h + 1 : ZEND_LONG_MAX; - } return &p->val; } else { /* we have to keep the order :( */ goto convert_to_hash;