1
0
Fork 0

Avoid checking for hhvm in a loop, refs #10170

pull/10183/head
Jordi Boggiano 2021-10-18 10:51:16 +02:00 committed by GitHub
parent a6f1e803b1
commit 04ab74bbef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class HhvmDetector
self::$hhvmVersion = defined('HHVM_VERSION') ? HHVM_VERSION : null;
if (self::$hhvmVersion === null && !Platform::isWindows()) {
self::$hhvmVersion = false;
$this->executableFinder = $this->executableFinder ?: new ExecutableFinder();
$hhvmPath = $this->executableFinder->find('hhvm');
if ($hhvmPath !== null) {