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
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.
What did you do? If possible, provide a simple script for reproducing the error.
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.
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: swoole/docker-swoole#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
) ?The text was updated successfully, but these errors were encountered: