Abort when HHVM 4.0 is detected to output a clear user message, refs #7990

main
Jordi Boggiano 5 years ago
parent 723308a1e7
commit d9f873d00e
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -18,6 +18,11 @@ $xdebug = new XdebugHandler('Composer', '--ansi');
$xdebug->check();
unset($xdebug);
if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '4.0', '>=')) {
echo 'HHVM 4.0 has dropped support for Composer, please use PHP instead. Aborting.'.PHP_EOL;
exit(1);
}
if (function_exists('ini_set')) {
@ini_set('display_errors', 1);

Loading…
Cancel
Save