composer self-update 出现 [ErrorException] zlib_decode(): data error提示的解决!

1、composer self-update 出现 [ErrorException]  zlib_decode(): data error提示

composer self-update 出现 [ErrorException] zlib_decode(): data error提示的解决!_第1张图片

composer self-update 出现 [ErrorException] zlib_decode(): data error提示

2、编辑php.ini中zlib.output_compression = On、zlib.output_compression_level = 5

composer self-update 出现 [ErrorException] zlib_decode(): data error提示的解决!_第2张图片

编辑php.ini中zlib.output_compression = On、zlib.output_compression_level = 5

3、查看phpinfo中zlib相关信息如下:

composer self-update 出现 [ErrorException] zlib_decode(): data error提示的解决!_第3张图片

查看phpinfo中zlib相关信息如下

4、composer self-update执行成功

composer self-update 出现 [ErrorException] zlib_decode(): data error提示的解决!_第4张图片

composer self-update执行成功

你可能感兴趣的:(composer)