You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After PHP 8.2 exit no longer works as a graceful process termination.
I tried to solve the problem in this way by replacing exit with posix_kill(posix_getpid(), SIGKILL); and it started working correctly, but I'm not sure if the result is correct.
This code will perform only 2 tasks and will hang indefinitely waiting for the end of the processes.
After PHP 8.2 exit no longer works as a graceful process termination.
I tried to solve the problem in this way by replacing
exit
withposix_kill(posix_getpid(), SIGKILL);
and it started working correctly, but I'm not sure if the result is correct.This code will perform only 2 tasks and will hang indefinitely waiting for the end of the processes.
Example:
Laravel:
10.10.1
PHP:
8.2.6
OS (Docker): Alpine (3.18.0)
The text was updated successfully, but these errors were encountered: