Skip to content

Assertion failure Zend/zend_hash.c:1730 #17409

Closed

Description

@YuanchengJiang

Description

The following code:

<?php
$root = simplexml_load_string('<?xml version="1.0"?>
<root xmlns:reserved="reserved-ns">
<child reserved:attribute="Sample" />
</root>
');
array_merge_recursive($GLOBALS, $GLOBALS);

Resulted in this output:

php: /home/phpfuzz/WorkSpace/flowfusion/php-src/Zend/zend_hash.c:1730: void zend_hash_destroy(HashTable *): Assertion `(zend_gc_refcount(&(ht)->gc) <= 1) || ((ht)->u.flags & (1<<6))' failed.
Aborted (core dumped)

PHP Version

nightly

Operating System

No response

Activity

  1. self-assigned this
    on Jan 9, 2025
  2. added a commit that references this issue on Jan 9, 2025
    e2d3a99
  3. added a commit that references this issue on Jan 9, 2025
    a2a7287
  4. added 2 commits that reference this issue on Jan 9, 2025
    3eb79e1
    5d4707e
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