Skip to content

Segmentation fault @ PHP 8.1 #4844

Closed
Closed
@b1rdex

Description

@b1rdex
Q A
PHPUnit version 9.5.10
PHP version 8.1.1
Installation Method Composer

Summary

We have some code that worked without any issues on PHP 8.0, but it's failing with a segmentation fault on 8.1.
I'm not sure whether it's a PHPUnit or PHP issue... So please see the code. Mock creation triggers the problem.

Current behavior

Segmentation fault.

How to reproduce

Test repo: https://github.com/b1rdex/php-8.1-segfault

Expected behavior

No problem :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions