Open
Description
Description
Preloading a class:
<?php
require_once __DIR__ . '/DummyTrait.php';
class DummyModel
{
use DummyTrait;
}
that uses a trait which has hooked properties:
<?php
trait DummyTrait
{
public ?string $dummyProperty1 = null; // This doesn't crash
public ?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 Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.7, Copyright (c) Zend Technologies
with Zend OPcache v8.4.7, Copyright (c), by Zend Technologies
Operating System
No response