You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP 8.0 debug nts builds fail when unserializing circular array reference such as GLOBALS #308
This is a result of the unserialization, not specifically of GLOBALS. The issue is that there are multiple references to the same hash table when unserializing an array when there are multiple references to that array
The standard serialize doesn't allow multiple pointers to an array
staticzend_always_inlinezval*_zend_hash_add_or_update_i(HashTable*ht, zend_string*key, zval*pData, uint32_tflag)
{
zend_ulongh;
uint32_tnIndex;
uint32_tidx;
Bucket*p, *arData;
IS_CONSISTENT(ht);
HT_ASSERT_RC1(ht); // this fails in debug builds
changed the title [-]PHP 8.0 debug nts builds fail when unserializing circular array reference[/-][+]PHP 8.0 debug nts builds fail when unserializing circular array reference such as GLOBALS[/+]on Dec 24, 2020
Activity
[-]PHP 8.0 debug nts builds fail when unserializing circular array reference[/-][+]PHP 8.0 debug nts builds fail when unserializing circular array reference such as GLOBALS[/+]Fix debug warning for unserializing circular array reference