- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
Preloading a class:
<?phprequire_once__DIR__ .'/DummyTrait.php';class DummyModel{use DummyTrait;}
that uses a trait which has hooked properties:
<?phptrait DummyTrait{public ?string$dummyProperty1 =null;// This doesn't crashpublic ?string$dummyProperty2 {// This crashes get =>null; }}
into opcache makes FPM fail to start with code 70, in other cases throws segmentation fault. Reproducer app:https://github.com/zenas1210/bug-reproducer.
Seems to affect all 8.4.* versions.
PHP Version
PHP 8.4.7 (fpm-fcgi) (built: May 8 2025 21:26:47) (NTS)Copyright (c) The PHP GroupBuilt by https://github.com/docker-library/phpZend Engine v4.4.7, Copyright (c) Zend Technologies with Zend OPcache v8.4.7, Copyright (c), by Zend Technologies
Operating System
No response