com php-src: Removed impossible condition: Zend/zend_hash.c

From: Date: Thu, 22 Sep 2016 14:58:45 +0000
Subject: com php-src: Removed impossible condition: Zend/zend_hash.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94622@lists.php.net to get a copy of this message
Commit: 42db69058a2695d91e667b3817ebb52a037850e0 Author: Dmitry Stogov <dmitry@zend.com> Thu, 22 Sep 2016 17:58:45 +0300 Parents: d02e2605a84b2a6bfc106c2fc03835bbe0821b30 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=42db69058a2695d91e667b3817ebb52a037850e0 Log: Removed impossible condition Changed paths: M Zend/zend_hash.c Diff: diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 622d94a..be04872 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;

« previous php.cvs (#94622) next »