From d9f873d00e6670f6802441e21538e0e4704128a2 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 16 Feb 2019 17:39:59 +0100 Subject: [PATCH] Abort when HHVM 4.0 is detected to output a clear user message, refs #7990 --- bin/composer | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/composer b/bin/composer index 5e142662c..3585787f2 100755 --- a/bin/composer +++ b/bin/composer @@ -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);