1
0
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:
Dmitry Stogov
2018-03-05 23:38:15 +03:00

View File

@@ -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;