mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
Merge branch 'PHP-7.2'
* PHP-7.2: Fixed invalid destructor
This commit is contained in:
@@ -179,7 +179,7 @@ static void zend_hash_clone_constants(HashTable *ht, HashTable *source)
|
||||
ht->nNumUsed = 0;
|
||||
ht->nNumOfElements = source->nNumOfElements;
|
||||
ht->nNextFreeElement = source->nNextFreeElement;
|
||||
ht->pDestructor = ZVAL_PTR_DTOR;
|
||||
ht->pDestructor = NULL;
|
||||
HT_FLAGS(ht) = (HT_FLAGS(source) & HASH_FLAG_INITIALIZED);
|
||||
ht->nInternalPointer = source->nNumOfElements ? 0 : HT_INVALID_IDX;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user