ext-swooleis supported until v4.7.1, use
ext-openswoole>= v4.7.1. Latest version:
pecl install openswoole-4.10.0
<?php Swoole\Server->getLastError(): int
If successful, a integer is returned which corresponds to an error code and message.
Get the error code of the most recent error.
Returns the error code of the most recent error. Allows you to execute different logic based on the error code returned.
The following are the different error codes which can be returned:
dispatch_mode3, indicates that the process is not currently available.