[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()
{
// HHVM support
if (defined('HHVM_VERSION') && false !== $hhvm = getenv('PHP_BINARY')) {
return $hhvm;
if (defined('HHVM_VERSION')) {
return (false !== ($hhvm = getenv('PHP_BINARY')) ? $hhvm : PHP_BINARY).' --php';
}
// PHP_BINARY return the current sapi executable