[php-src] Issue #15902: Core dumped in ext/reflection/php_reflection.c

From: Date: Mon, 16 Sep 2024 08:12:11 +0000
Subject: [php-src] Issue #15902: Core dumped in ext/reflection/php_reflection.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247787@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15902 Author: YuanchengJiang ### Description The following code: ```php <?php class C { public stdClass $a = FOO; } $reflector = new ReflectionClass(C::class); $c = $reflector->newLazyGhost(function () { }); function f() { define('FOO', new stdClass); } f(); try { var_dump($c->a); } catch (\Error $e) { } $fusion = $reflector; $s = 'C:11:"ArrayObject":' . strlen($p) . ':{' . $fusion . '}'; ``` Resulted in this output: ``` /php-src/ext/reflection/php_reflection.c:686: format_default_value: Assertion `zval_get_type(&(*(value))) == 11' failed. Aborted (core dumped) ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247787) next »