Giter Site home page Giter Site logo

Comments (10)

 avatar commented on May 21, 2024 2

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.

tiagomichaelsousa avatar tiagomichaelsousa commented on May 21, 2024 1

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.

deminy avatar deminy commented on May 21, 2024 1

@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.

liulyn avatar liulyn commented on May 21, 2024

from docker-swoole.

deminy avatar deminy commented on May 21, 2024

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.

 avatar commented on May 21, 2024

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?

--enable-sockets --enable-swoole-curl && \

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.

deminy avatar deminy commented on May 21, 2024

@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.

 avatar commented on May 21, 2024

@deminy Thanks, the temporary workaround works for us. 👍

from docker-swoole.

mlocati avatar mlocati commented on May 21, 2024

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.

 avatar commented on May 21, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.