Remove superfluous branch

This commit is contained in:
Thomas Punt 2017-06-21 21:47:22 +01:00 committed by Joe Watkins
parent 660250f4da
commit b1301a0686
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E

View file

@ -291,7 +291,6 @@ static uint32_t zend_array_recalc_elements(HashTable *ht)
uint32_t num = ht->nNumOfElements;
ZEND_HASH_FOREACH_VAL(ht, val) {
if (Z_TYPE_P(val) == IS_UNDEF) continue;
if (Z_TYPE_P(val) == IS_INDIRECT) {
if (UNEXPECTED(Z_TYPE_P(Z_INDIRECT_P(val)) == IS_UNDEF)) {
num--;