8000 [Process] fixed HHVM support · symfony/symfony@876482f · GitHub
[go: up one dir, main page]

Skip to content

Commit 876482f

Browse files
committed
[Process] fixed HHVM support
1 parent 539de17 commit 876482f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Process/PhpExecutableFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public function __construct()
3434
public function find()
3535
{
3636
// HHVM support
37-
if (($hhvm = getenv("PHP_BINARY")) !== false) {
37+
if (defined('HHVM_VERSION') && false !== $hhvm = getenv('PHP_BINARY')) {
3838
return $hhvm;
3939
}
40-
40+
4141
// PHP_BINARY return the current sapi executable
4242
if (defined('PHP_BINARY') && PHP_BINARY && ('cli' === PHP_SAPI) && is_file(PHP_BINARY)) {
4343
return PHP_BINARY;

0 commit comments

Comments
 (0)
0