Disable bootstrap.php checks when HHVM is used
This commit is contained in:
parent
4100610390
commit
d0c6af2cb5
1 changed files with 5 additions and 3 deletions
|
@ -6,10 +6,12 @@ if ($configDir) {
|
||||||
define('PHPUNIT_CONFIG_DIR', $configDir);
|
define('PHPUNIT_CONFIG_DIR', $configDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined('HHVM_VERSION')) {
|
||||||
if(version_compare(phpversion(), '5.6.0', '>=') &&
|
if(version_compare(phpversion(), '5.6.0', '>=') &&
|
||||||
ini_get('always_populate_raw_post_data') !== '-1') {
|
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");
|
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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue