Skip to content

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

Description

@zenas1210

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

Activity

  1. self-assigned this
    on May 18, 2025
  2. added a commit that references this issue on May 18, 2025
    f0fcb59
  3. added a commit that references this issue on May 19, 2025
    6b795f6
  4. added a commit that references this issue on May 19, 2025
    383aad8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions