Add zlib warning to diagnose command
parent
9c8617cd33
commit
66bb195233
|
@ -494,6 +494,10 @@ EOT
|
||||||
$warnings['apc_cli'] = true;
|
$warnings['apc_cli'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!extension_loaded('zlib')) {
|
||||||
|
$warnings['zlib'] = true;
|
||||||
|
}
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
phpinfo(INFO_GENERAL);
|
phpinfo(INFO_GENERAL);
|
||||||
$phpinfo = ob_get_clean();
|
$phpinfo = ob_get_clean();
|
||||||
|
@ -596,6 +600,12 @@ EOT
|
||||||
$displayIniMessage = true;
|
$displayIniMessage = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'zlib':
|
||||||
|
$text = 'The zlib extension is not loaded, this can slow down Composer a lot.'.PHP_EOL;
|
||||||
|
$text .= 'If possible, enable it or recompile php with --with-zlib'.PHP_EOL;
|
||||||
|
$displayIniMessage = true;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'sigchild':
|
case 'sigchild':
|
||||||
$text = "PHP was compiled with --enable-sigchild which can cause issues on some platforms.".PHP_EOL;
|
$text = "PHP was compiled with --enable-sigchild which can cause issues on some platforms.".PHP_EOL;
|
||||||
$text .= "Recompile it without this flag if possible, see also:".PHP_EOL;
|
$text .= "Recompile it without this flag if possible, see also:".PHP_EOL;
|
||||||
|
|
Loading…
Reference in New Issue