[php-src] Issue #19305: Assertion failure in zend_lazy_objects.c found by `php-fuzz-execute`

From: Date: Wed, 30 Jul 2025 09:10:17 +0000
Subject: [php-src] Issue #19305: Assertion failure in zend_lazy_objects.c found by `php-fuzz-execute`
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250525@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/19305 Author: gal1ium ### Description ### Description The following code: ```php <?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 ```plain https://github.com/php/php-src/commit/16b2fc41a3cf3871d5481c1efc2e16ac99a2890e ``` ### Operating System _No response_

« previous php.bugs (#250525) next »