Skip to content

Assertion failure in zend_lazy_objects.c found by php-fuzz-execute #19305

Description

@gal1ium

Description

Description

The following code:

<?php
class C
{
    public $s;
}
$r = new ReflectionClass(C::class);
$o = $r->newLazyProxy(function () {});
print $o >
$r->newLazyGhost(function () {
    global $o;
    $o = null;
});

Resulted in this output:

php-fuzz-execute: /src/php-src/Zend/zend_lazy_objects.c:582: zend_object *zend_lazy_object_init(zend_object *): Assertion `ce->ce_flags & (1 << 12)' failed.
Aborted (core dumped)

PHP Version

16b2fc4

Operating System

No response

Activity

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