Skip to content

Segmentation Fault with php 8.3.20 #55437

Open
@jeff1326

Description

@jeff1326

Laravel Version

11.44.2

PHP Version

8.3.20

Database Driver & Version

No response

Description

The script crash with sleep function.

/code$ php artisan tinker
Psy Shell v0.12.8 (PHP 8.3.20 — cli) by Justin Hileman
> \Illuminate\Support\Sleep::sleep(1); 1;
/code$ 

While native sleep is working.

text_product_v2:/code$ php artisan tinker
Psy Shell v0.12.8 (PHP 8.3.20 — cli) by Justin Hileman
> sleep(1); 1
= 1

> 

I can reproduce it in my code too. I used tinker here to simplify steps to reproduce.
This was working with previous version of Php (8.3.19)

Steps To Reproduce

Using \Illuminate\Support\Sleep::sleep(1); in my code.

See also : php/php-src#18337

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions