Skip to content

Assertion failure Zend/zend_hash.c:74 #17444

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
class Box {
}
class Test {
function __destruct() {
global $box;
$box->value = null;
}
}
$box = new Box();
$box->value = new Test;
is_callable($tmp,$tmp,$box);

Resulted in this output:

/home/phpfuzz/WorkSpace/flowfusion/php-src/Zend/zend_hash.c(2672) : ht=0x7fa629c4b360 is being destroyed
php: /home/phpfuzz/WorkSpace/flowfusion/php-src/Zend/zend_hash.c:74: void _zend_is_inconsistent(const HashTable *, const char *, int): Assertion `0' failed.
Aborted (core dumped)

Might be a dup to #17442

It is fixed before #17162

PHP Version

nightly

Operating System

No response

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