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
FROM php:8.4-cli-alpine
WORKDIR /app
RUN --mount=type=bind,from=mlocati/php-extension-installer:latest,source=/usr/bin/install-php-extensions,target=/usr/local/bin/install-php-extensions \
install-php-extensions swoole
Swoole is throwing warnings when coroutines are enabled: php-1 | [2025-01-24 17:32:07 *12.1] WARNING Iouring::Iouring() (ERRNO 502): Create io_uring failed, the error code is 1
Printing to stdout results in errors like: Notice: fwrite(): Write of 52 bytes failed with errno=0 No error information in /app/src/Log/StdOutLogger.php on line 23
without coroutines or with io_uring disabled it is working properly.
The text was updated successfully, but these errors were encountered:
It is not a problem of swoole. It seems you used docker and usual it disable access to io_uring calls (to host system).
Just run image container with option --security-opt like this: docker run -d --security-opt seccomp=unconfined your_image
for docker compose
With swoole installed like this:
Swoole is throwing warnings when coroutines are enabled:
php-1 | [2025-01-24 17:32:07 *12.1] WARNING Iouring::Iouring() (ERRNO 502): Create io_uring failed, the error code is 1
Printing to stdout results in errors like:
Notice: fwrite(): Write of 52 bytes failed with errno=0 No error information in /app/src/Log/StdOutLogger.php on line 23
without coroutines or with io_uring disabled it is working properly.
The text was updated successfully, but these errors were encountered: