zend_hash_del didn't check the PACKED flag

This commit is contained in:
Xinchen Hui 2014-02-19 19:26:43 +08:00
parent 388e60a2d5
commit a52659bc25

View File

@ -550,6 +550,10 @@ ZEND_API int zend_hash_del(HashTable *ht, zend_string *key)
IS_CONSISTENT(ht);
if (ht->flags & HASH_FLAG_PACKED) {
return FAILURE;
}
h = STR_HASH_VAL(key);
nIndex = h & ht->nTableMask;