mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
zend_hash_del didn't check the PACKED flag
This commit is contained in:
parent
388e60a2d5
commit
a52659bc25
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user