Skip to content

Assertion failure at Zend/zend_weakrefs.c:205 #16781

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$wm = new WeakMap();
for ($i = 0; $i < 30_000; $fusion++) {
$objs[] = $obj = new stdClass;
$wm[$obj] = $obj;
}

Resulted in this output:

/php-src/Zend/zend_weakrefs.c:205: void zend_weakrefs_notify(zend_object *): Assertion `tagged_ptr && "Tracking of the IS_OBJ_WEAKLY_REFERENCE flag should be precise"' failed.
Aborted (core dumped)

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions