Avoid checking for hhvm in a loop, refs #10170
parent
a6f1e803b1
commit
04ab74bbef
|
@ -50,6 +50,7 @@ class HhvmDetector
|
||||||
|
|
||||||
self::$hhvmVersion = defined('HHVM_VERSION') ? HHVM_VERSION : null;
|
self::$hhvmVersion = defined('HHVM_VERSION') ? HHVM_VERSION : null;
|
||||||
if (self::$hhvmVersion === null && !Platform::isWindows()) {
|
if (self::$hhvmVersion === null && !Platform::isWindows()) {
|
||||||
|
self::$hhvmVersion = false;
|
||||||
$this->executableFinder = $this->executableFinder ?: new ExecutableFinder();
|
$this->executableFinder = $this->executableFinder ?: new ExecutableFinder();
|
||||||
$hhvmPath = $this->executableFinder->find('hhvm');
|
$hhvmPath = $this->executableFinder->find('hhvm');
|
||||||
if ($hhvmPath !== null) {
|
if ($hhvmPath !== null) {
|
||||||
|
|
Loading…
Reference in New Issue