Open
Description
Description
The following code:
<?[$i]=$i[]=$i=&$Yhh;$i[$m==$i[]=$i];$h=$i[$m==$i[]=0]+=$Yhh;
Resulted in this output:
Zend/zend_hash.c:1007: zval *_zend_hash_index_add_or_update_i(HashTable *, zend_ulong, zval *, uint32_t): Assertion `(zend_gc_refcount(&(ht)->gc) == 1) || ((ht)->u.flags & (1<<6))' failed.
Reproduce steps:
./configure --disable-all --enable-address-sanitizer --disable-phpdbg --disable-cgi --with-pic --enable-debug-assertions
make -j
./sapi/cli/php -f poc.php
Git commit: b96b88b
PS: Without the debug assertions, the poc doesn't trigger a crash or abort by sanitizer.
PHP Version
PHP 8.3.0-dev
Operating System
Ubuntu 20.04