"Failed to decode zlib stream" when install
Get error when install composer with curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Failed to decode zlib stream' in -:574
Stack trace:
#0 -(417): HttpClient->get('https://getcomp...')
#1 -(112): installComposer(false, false, 'composer.phar', false, false, false)
#2 -(14): process(Array)
#3 {main}
thrown in - on line 574
Duplicate of #4121
This is network connection issue.
Failed to decode zlib stream how to solve this issue
may be you should use this command at ubuntu
sudo apt-get install zlibc
good luck
how to solve the issue,in windows system?
In windows, change zlib.output_compression=Off to on in php.ini file good luck
hi ekasolusi thanks.
thanks @ekasolusi
thanks @ekasolusi
Thanks it work
In windows, change zlib.output_compression=Off to on in php.ini file good luck
Thank you so much @ekasolusi
In windows, change zlib.output_compression=Off to on in php.ini file good luck
Thanks its work! Great
https://github.com/composer/composer/issues/4619#issuecomment-309631946
thanks this works
In windows, change zlib.output_compression=Off to on in php.ini file good luck
Thankyou It work! but first time i've just write "On" and still error the value is must be "on"
thanks this works
Try to enable fileinfo extension fromini file
In windows, change zlib.output_compression=Off to on in php.ini file good luck
i was about to make this change, but i press retry previously and then it worked, is mine gonna have bug or something? im worried lol
what if it happened in Docker?
may be you should use this command at ubuntu
sudo apt-get install zlibcgood luck
It works in some case,
I've installed apt-get install zlibc on-premise server but Not Works.
it also depending on your Internet Provider and Firewall 😄 make sure http not blocked and your internet provider or firewall (i.e Fortigate) doesn't limit anything
I know this is closed, old and from 2015, but for Debian Bookworm, this seems to solve the issue:
sudo apt install zlib1g