Skip to content

Http::failedConnection() exit code 139 since PHP 8.4 #54875

@NiroDeveloper

Description

@NiroDeveloper

Laravel Version

12.0.1

PHP Version

8.4.4

Database Driver & Version

No response

Description

Http::failedConnection() is broken after my upgrade from PHP 8.3 to PHP 8.4.4
The PestPHP process just finishes with exit code 139 without error message.

Image

Seems like the process will be killed in GuzzleHttp\Promise\RejectedPromise::wait that is called in Illuminate\Http\Client\Factory::fake.
Note: This does not occur when debugging with xdebug.

Steps To Reproduce

  1. Create Project with Laravel 12.0.1, Pest 3.7.4 and Guzzle 7.9.2 in Docker php:8.4-cli-alpine.
  2. Add and run this unit test:
test('wtf', function ()
{
    Http::fake(['*' => Http::failedConnection()]);

    Http::get('domain.com'); // This will kill the php process.
})->throws(ConnectionException::class);
  1. See process finished with exit code 139

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions