ext-swooleis supported until v4.7.1, use
ext-openswoole>= v4.7.1. Latest version:
pecl install openswoole-4.10.0
<?php Swoole\Process::exit (int $status=0) : int
the exit status code of process.
If this code is
0, it stands for that the process exits normally and continue to execute the registered shutdown function.
If this code isn't
0, it stands for that the process exits unexpectedly and stops immediately. The father process can use
Swoole\Process::wait to get the exit event and code from the child process.
Stop the child process.