Closed

Description
I'm updating my v4.2 project. Composer's uptodate,
cd ~
which composer
/usr/local/bin/composer
composer --version
Composer version 1.8.6 2019-06-11 15:03:05
composer -vv self-update
You are already using composer version 1.8.6 (stable channel).
but in my Symfony project,
cd /src/www/test
composer --version
[ErrorException]
curl_multi_setopt(): CURLPIPE_HTTP1 is no longer supported
composer -vv self-update
[ErrorException]
curl_multi_setopt(): CURLPIPE_HTTP1 is no longer supported
Exception trace:
() at /src/www/test/vendor/symfony/flex/src/CurlDownloader.php:49
Composer\Util\ErrorHandler::handle() at n/a:n/a
curl_multi_setopt() at /src/www/test/vendor/symfony/flex/src/CurlDownloader.php:49
Symfony\Flex\CurlDownloader->__construct() at /src/www/test/vendor/symfony/flex/src/ParallelDownloader.php:48
Symfony\Flex\ParallelDownloader->__construct() at /src/www/test/vendor/symfony/flex/src/Flex.php:108
Symfony\Flex\Flex->activate() at phar:///usr/local/bin/composer.phar/src/Composer/Plugin/PluginManager.php:236
Composer\Plugin\PluginManager->addPlugin() at phar:///usr/local/bin/composer.phar/src/Composer/Plugin/PluginManager.php:205
Composer\Plugin\PluginManager->registerPackage() at phar:///usr/local/bin/composer.phar/src/Composer/Plugin/PluginManager.php:261
Composer\Plugin\PluginManager->loadRepository() at phar:///usr/local/bin/composer.phar/src/Composer/Plugin/PluginManager.php:76
Composer\Plugin\PluginManager->loadInstalledPlugins() at phar:///usr/local/bin/composer.phar/src/Composer/Factory.php:384
Composer\Factory->createComposer() at phar:///usr/local/bin/composer.phar/src/Composer/Factory.php:576
Composer\Factory::create() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:345
Composer\Console\Application->getComposer() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:458
Composer\Console\Application->getPluginCommands() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:156
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:104
Composer\Console\Application->run() at phar:///usr/local/bin/composer.phar/bin/composer:61
require() at /usr/local/bin/composer.phar:24
Activity
nicolas-grekas commentedon Jun 14, 2019
Correct! Would you mind sending a PR to drop using the flag?
bug #517 remove deprecated CURLPIPE_HTTP1 support flag (hal869)
remove deprecated CURLPIPE_HTTP1 support flag
gundamftw commentedon Dec 4, 2019
Hi I'm also getting this exact same error as of today while trying to update from Symfony 4.2 to 5. My Composer version is 1.9.1.
curl_multi_setopt(): CURLPIPE_HTTP1 is no longer supported
with latest docker container composer/docker#100diamondlee commentedon Dec 9, 2019
Wondering when this issue will be reopened and fixed
nicolas-grekas commentedon Dec 9, 2019
this issue is already fixed, please upgrade.
diamondlee commentedon Dec 9, 2019
odd i am using symfony/flex 1.5.3 which is latest. so again i am wondering when this will be fixed or what is needed to resolve this issue

nicolas-grekas commentedon Dec 9, 2019
you may have forgotten to upgrade your global flex install
compose global require symfony/flex ^1.5
BTW, don't hesitate to submit fixes next time, no need to wait when you can contribute them.
diamondlee commentedon Dec 9, 2019
interesting i did not read that https://symfony.com/doc/current/setup/flex.html. I am wondering if you could explain what this is doing then using composer update symfony/flex
diamondlee commentedon Dec 9, 2019
That did not fix anything i only got subsequent errors.
nicolas-grekas commentedon Dec 9, 2019
That's not an error, just an info message.
11 remaining items
nicolas-grekas commentedon Dec 20, 2019
CURLPIPE_HTTP1
doesn't exist in the code anymore. If you have the issue, the only reason I can imagine is because you didn't update flex to the latest version.diamondlee commentedon Dec 20, 2019
@nicolas-grekas this seems to be resolved with the use of php 7.4.1 which was released 2019/18/12
TimoBakx commentedon Jan 20, 2020
I had this issue in a project that I haven't touched in a while.
I fixed it by:
composer global require symfony/flex ^1.5
as @nicolas-grekas suggested.vendor/symfony/flex
directory in my project.composer update
.carherco commentedon Jan 21, 2020
That worked for me. Thanks!
mnapoli commentedon Mar 11, 2020
Same issue today as well, couldn't run any composer command in my project.
Sure, but how do you updated it? I haven't installed flex globally. And I can't update anything since Composer is broken.
Thanks @TimoBakx for the solution, I had to
rm -rf vendor
to unblock my project…guilliamxavier commentedon Oct 20, 2020
FTR: you can also try
composer update symfony/flex --no-plugins --no-scripts
, then you should be able to runcomposer install
(or other commands) normally1 remaining item