Open
Description
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