mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Initialize ht->nTableMask
This commit is contained in:
parent
9aac41753b
commit
989daeb5bb
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ ZEND_API void zend_hash_packed_to_hash(HashTable *ht)
|
|||
{
|
||||
HANDLE_BLOCK_INTERRUPTIONS();
|
||||
ht->u.flags &= ~HASH_FLAG_PACKED;
|
||||
ht->nTableMask = ht->nTableSize - 1;
|
||||
ht->arData = (Bucket *) safe_perealloc(ht->arData, ht->nTableSize, sizeof(Bucket) + sizeof(uint32_t), 0, ht->u.flags & HASH_FLAG_PERSISTENT);
|
||||
ht->arHash = (uint32_t*)(ht->arData + ht->nTableSize);
|
||||
zend_hash_rehash(ht);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue