8000 Add support for HHVM in the getting of the PHP executable by fabpot · Pull Request #9882 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Add support for HHVM in the getting of the PHP executable #9882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 29, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
8000
Loading
Diff view
Diff view
Prev Previous commit
[Process] fixed HHVM support
  • Loading branch information
fabpot committed Dec 29, 2013
commit 876482f1a625f03ad2470a80ef6aab900e64d10d
4 changes: 2 additions & 2 deletions src/Symfony/Component/Process/PhpExecutableFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public function __construct()
public function find()
{
// HHVM support
if (($hhvm = getenv("PHP_BINARY")) !== false) {
if (defined('HHVM_VERSION') && false !== $hhvm = getenv('PHP_BINARY')) {
return $hhvm;
}

// PHP_BINARY return the current sapi executable
if (defined('PHP_BINARY') && PHP_BINARY && ('cli' === PHP_SAPI) && is_file(PHP_BINARY)) {
return PHP_BINARY;
Expand Down
0