Disable bootstrap.php checks when HHVM is used

This commit is contained in:
Lukas Reschke 2015-02-28 10:11:12 +01:00
parent 4100610390
commit d0c6af2cb5

View file

@ -6,9 +6,11 @@ if ($configDir) {
define('PHPUNIT_CONFIG_DIR', $configDir); define('PHPUNIT_CONFIG_DIR', $configDir);
} }
if(version_compare(phpversion(), '5.6.0', '>=') && if (!defined('HHVM_VERSION')) {
ini_get('always_populate_raw_post_data') !== '-1') { if(version_compare(phpversion(), '5.6.0', '>=') &&
throw new Exception("'always_populate_raw_post_data' has to be set to '-1' in your php.ini"); ini_get('always_populate_raw_post_data') !== '-1') {
throw new Exception("'always_populate_raw_post_data' has to be set to '-1' in your php.ini");
}
} }
require_once __DIR__ . '/../lib/base.php'; require_once __DIR__ . '/../lib/base.php';