Skip to content

Exit code 139 if exception thrown in callback since PHP 8.4 #17968

Closed as not planned
@NiroDeveloper

Description

@NiroDeveloper

Description

The following code:

<?php

$collection = new Collection([fn() => throw new RuntimeException()]);

new HigherOrderCollectionProxy($collection, 'each')->__invoke();

Resulted in this output:

Process finished with exit code 139

But I expected a successful test.

I use Laravel 12 with PHP 8.4 (this problem does not occur with PHP 8.3)
I haven't been able to reproduce this without Laravel yet, i will post new information then.

Note: This problem does not occur while debugging using xdebug.

PHP Version

8.4.1 - 8.4.4

Operating System

Docker php:8.4-cli-alpine under Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions