Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
<?php Swoole\Server->getLastError(): int
none
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:
$fd
was given.buffer_output_size
configuration option.dispatch_mode
3, indicates that the process is not currently available.