-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swoole alpine php8.3 composer fails with a segfault #45
Comments
邮件已收到 谢谢!
|
Thanks for reporting the issue. Reassigning to @matyhtf . Steps to reproduce: docker run --rm -ti phpswoole/swoole:5.1.1-php8.3-dev composer self-update ; echo $? vs docker run --rm -ti phpswoole/swoole:5.1.1-php8.2-dev composer self-update ; echo $? |
This seems to be a problem with
Composer self-updates without swoole-curl:
|
@devrla Yep, there could be new changes made to the curl extension between PHP 8.2 and 8.3, and the Swoole team didn't have those integrated into Swoole. The team is aware of the issue and is working on a fix. In the meantime, removing/disabling installation option Thanks |
@deminy Thanks, the temporary workaround works for us. 👍 |
Installing swoole with Here's a sample script that causes segmentation fault if swoole is compiled with curl support: https://github.com/mlocati/docker-php-extension-installer/blob/2.1.69/scripts/tests/swoole |
@mlocati We use the php extension installer for our images 👍 The issue has already been fixed But while this test now passes... docker run --rm -ti phpswoole/swoole:php8.3-alpine composer self-update ; echo $? ...a running container does not: docker run --rm -ti phpswoole/swoole:php8.3-alpine sh
/var/www # composer self-update
Segmentation fault Both behaviors probably have the same cause? |
I have now tested all the variations from this thread again with the latest swoole alpine image. Both the composer and curl requests run without errors. The builds of our PHP 8.3 alpine images with Swoole extension are also successful. So I think the issue can be closed. Thanks to everyone who was involved in the solution. |
Hello there, is it possible to release also the changes for From what I saw in GitHub workflows it will probably need a merge from the main branch to the 5.1.1 branch to update the image. Thank you in advance 🙏 |
@tiagomichaelsousa Unfortunately we can't. Docker image However, there are nightly images built using latest source code of Swoole from the master branch. Please feel free to try them (e.g., php8.3-alpine) a try and let us know if there are any questions. |
Hello, after updating the alpine php base image to v8.3.0, ext-swoole is installed and the application is running, but composer can neither install nor update.
Define any dependency or try to require later, e.g.:
Composer installation
Segmentation fault
The text was updated successfully, but these errors were encountered: