Skip to content
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

Issue with PHP8 in CurlMulti #227

Open
jderusse opened this issue Jun 19, 2020 · 0 comments
Open

Issue with PHP8 in CurlMulti #227

jderusse opened this issue Jun 19, 2020 · 0 comments

Comments

@jderusse
Copy link

jderusse commented Jun 19, 2020

Runing composer req on PHP8 image triggers an exception in CurlMulti (when casting the resource to int)

composer init --no-interaction
composer global require hirak/prestissimo
composer req symfony/phpunit-bridge -vvv
  [ErrorException]                                          
  Object of class CurlHandle could not be converted to int  
                                                            

Exception trace:
 () at /root/.composer/vendor/hirak/prestissimo/src/CurlMulti.php:93
 Composer\Util\ErrorHandler::handle() at /root/.composer/vendor/hirak/prestissimo/src/CurlMulti.php:93
 Hirak\Prestissimo\CurlMulti->setupEventLoop() at /root/.composer/vendor/hirak/prestissimo/src/Prefetcher.php:29
 Hirak\Prestissimo\Prefetcher->fetchAll() at /root/.composer/vendor/hirak/prestissimo/src/Prefetcher.php:87
 Hirak\Prestissimo\Prefetcher->fetchAllFromOperations() at phar:///var/www/html/composer.phar/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:144
 Hirak\Prestissimo\Plugin_composer_tmp0->onPostDependenciesSolving() at n/a:n/a
 call_user_func() at phar:///var/www/html/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:164

full reproduce-case with docker image

docker pull devilbox/php-fpm-8.0
docker run --rm -ti devilbox/php-fpm-8.0 bash
apt-get update; apt-get install -y git zip

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php

php composer.phar global require hirak/prestissimo
php composer.phar init --no-interaction
php composer.phar req symfony/phpunit-bridge -vvv

note: same issue with composer2 composer/composer#8994

@jderusse jderusse changed the title Issue with PHP8 in CurlDownloader Issue with PHP8 in CurlMulti Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant