Skip to content

FPM exit code 70 with enabled opcache and hooked properties in traits #18534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zenas1210 opened this issue May 11, 2025 · 0 comments
Open

Comments

@zenas1210
Copy link

zenas1210 commented May 11, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants