1
0
Fork 0

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

pull/8017/head
Jordi Boggiano 2019-02-16 17:39:59 +01:00
parent 723308a1e7
commit d9f873d00e
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ $xdebug = new XdebugHandler('Composer', '--ansi');
$xdebug->check(); $xdebug->check();
unset($xdebug); 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')) { if (function_exists('ini_set')) {
@ini_set('display_errors', 1); @ini_set('display_errors', 1);