Comments (10)
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.
from docker-swoole.
Hello there, is it possible to release also the changes for 5.1.1-php8.3-alpine
?
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 🙏
from docker-swoole.
@tiagomichaelsousa Unfortunately we can't. Docker image 5.1.1-php8.3-alpine
was built for v5.1.1 of Swoole. The issue will be fixed in the next release of Swoole, but not in the released version (v5.1.1).
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.
from docker-swoole.
from docker-swoole.
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 $?
from docker-swoole.
This seems to be a problem with swoole-curl
. If I build the image without that configuration, deminy's test passes. So does the issue belong more to swoole-src itself?
Composer self-updates without swoole-curl:
docker-php-ext-configure swoole \
--enable-mysqlnd \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets && \
docker-php-ext-install -j$(nproc) swoole && \
from docker-swoole.
@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 --enable-swoole-curl
could be a temporary workaround to play with Swoole 5.1.1 on PHP 8.3, although I haven't yet tried it by myself.
Thanks
from docker-swoole.
@deminy Thanks, the temporary workaround works for us. 👍
from docker-swoole.
Installing swoole with --enable-swoole-curl
set to yes leads to segmentation fault on Debian too (non only on Alpine).
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
from docker-swoole.
@mlocati We use the php extension installer for our images 👍
The issue has already been fixed
swoole/swoole-src#5206
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?
from docker-swoole.
Related Issues (20)
- Update images HOT 1
- example 00 cannot run as expected HOT 10
- When I'am getting phpswoole/swoole:php8.0 Docker image I got Alpine image instead Debian HOT 1
- docker build 报错! HOT 1
- Issue with Deployment on K8S HOT 3
- 自动重启好像不行 HOT 1
- Error deploying last version HOT 1
- using Yasd widh curl or requests form browser / PHPStorm HOT 1
- Something wrong when Install Redis extendsion HOT 2
- Suggest adding some common extensions to become more usable out of the box HOT 8
- v5.0.0 doesn't seem to install inotify-tools? HOT 4
- Alpine 3.16 Update HOT 2
- > 300MB RAM usage on server start (Docker/Octane) HOT 3
- Support for http2 HOT 2
- Cannot install any extension on -dev tags HOT 1
- The file is repaired locally. Automatic loading cannot take effect HOT 3
- phpswoole/swoole:php8.2-dev won't install php extensions via docker-php-ext-install HOT 1
- install - PHP extendion like, php8.1-fpm, php8.1-common, php8.1-cli, php-pear HOT 1
- Investigate Performance Disparity: Benchmarks of Swoole PHP in Alpine vs. Ubuntu Images HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-swoole.