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
After upgrading to swoole 6.0.1 with php 8.4, this error is shown when trying to run services with coroutines enabled:
app-1 | [2025-02-14T15:34:27.287024+00:00] licensing-services-error.ERROR: Uncaught Exception TypeError: "Swoole\Runtime::enableCoroutine(): Argument #1 ($flags) must be of type int, true given" at /var/www/vendor/mezzio/mezzio-swoole/src/HttpServerFactory.php line 114 {"exception":"[object] (TypeError(code: 0): Swoole\\Runtime::enableCoroutine(): Argument #1 ($flags) must be of type int, true given at /var/www/vendor/mezzio/mezzio-swoole/src/HttpServerFactory.php:114)"} {"hostname":"9f91bcc4648d","service_id":"service"}
app-1 |
app-1 | In HttpServerFactory.php line 114:
app-1 |
app-1 | Swoole\Runtime::enableCoroutine(): Argument #1 ($flags) must be of type int
app-1 | , true given
app-1 |
app-1 |
app-1 | mezzio:swoole:start [-d|--daemonize] [-w|--num-workers NUM-WORKERS] [-t|--num-task-workers NUM-TASK-WORKERS]
Hi,
That issue is related to this.
Given that swoole 6.* has some breaking code, some work may need to be done to get mezzio-swoole to be at speed with new changes.
There is also PR here
Bug Report
Summary
After upgrading to swoole 6.0.1 with php 8.4, this error is shown when trying to run services with coroutines enabled:
src/HttpServerFactory.php
hasSwooleRuntime::enableCoroutine(true);
(https://github.com/mezzio/mezzio-swoole/blob/4.11.x/src/HttpServerFactory.php#L114), after changing toSwooleRuntime::enableCoroutine(1);
it works.Current behavior
Server fails to start
How to reproduce
Update to swoole 6
Expected behavior
Server running
The text was updated successfully, but these errors were encountered: