Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5
<?php OpenSwoole\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.