Skip to content

Assertion failure in xml_parse_into_struct after exception #15868

Closed

Description

@YuanchengJiang

Description

The following code:

<?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

Activity

  1. changed the title [-]Core dumped in Zend/zend_hash.c[/-] [+]Assertion failure in xml_parse_into_struct after exception[/+] on Sep 13, 2024
  2. self-assigned this
    on Sep 13, 2024
  3. added a commit that references this issue on Sep 13, 2024
    2362af2
  4. added 4 commits that reference this issue on Sep 13, 2024
    6c82ca2
    778bfce
    e7b022e
    ac8db36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions