[php-src] Issue #15868: Core dumped in Zend/zend_hash.c

From: Date: Fri, 13 Sep 2024 05:45:43 +0000
Subject: [php-src] Issue #15868: Core dumped in Zend/zend_hash.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247771@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15868 Author: YuanchengJiang ### Description The following code: ```php <?php $parser = xml_parser_create(); xml_set_element_handler($parser, function ($parser, $name, $attrs) { var_dump(xml_parse_into_struct($fusion, "<container/>", $values, $tags)); }, function ($parser, $name) { }); xml_parse_into_struct($parser, "<container/>", $values, $tags); ``` Resulted in this output: ``` /php-src/Zend/zend_hash.c:906: _zend_hash_str_add_or_update_i: Assertion `(zend_gc_refcount(&(ht)->gc) == 1) || ((ht)->u.flags & (1<<6))' failed. Aborted (core dumped) ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247771) next »