Closed cragonnyunt closed 7 months ago
I use docker base images for my projects. With my base image on PHP 8.2 my project works without a problem. Since PHP 8.3 every artisan command or "composer update" command throws a segmentation fault. I had to review my images extension to extension and it was swoole that broke my image.
The segfault is caused by the swoole-curl
extension. If the extension is disabled, composer runs. The Swoole team is aware of the issue and working on a fix: https://github.com/swoole/docker-swoole/issues/45
Steps to reproduce:
docker run --rm -ti phpswoole/swoole:5.1.1-php8.3-dev composer self-update ; echo $?
Latest release of php (8.3), installing swoole extension broke the running of composer to create project or install dependencies. Downgrading to php 8.2 works.
I tested on php 8.3 variants of swoole dockers (e.g. phpswoole/swoole:5.1.1-php8.3), and manually installed ext-swoole (5.1.1) on php 8.3 machine, and then tried to create a laravel project.
composer create-project laravel/laravel example-app
On docker/machine without swoole installed. It should successfully create the project.
On docker/machine with swoole(5.1.1) installed. It fails by showing
Segmentation fault (core dumped)
.php --ri swoole
)?uname -a
&php -v
&gcc -v
) ?