[Process] fixed HHVM usage on the CLI

This commit is contained in:
Fabien Potencier 2014-03-29 09:34:36 +01:00
parent 9f25978643
commit 8fbea0fe4d
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ class PhpExecutableFinder
public function find() public function find()
{ {
// HHVM support // HHVM support
if (defined('HHVM_VERSION') && false !== $hhvm = getenv('PHP_BINARY')) { if (defined('HHVM_VERSION')) {
return $hhvm; return (false !== ($hhvm = getenv('PHP_BINARY')) ? $hhvm : PHP_BINARY).' --php';
} }
// PHP_BINARY return the current sapi executable // PHP_BINARY return the current sapi executable