[Process] fixed HHVM support

This commit is contained in:
Fabien Potencier 2013-12-29 09:12:48 +01:00
parent 539de177ca
commit 876482f1a6

View File

@ -34,10 +34,10 @@ class PhpExecutableFinder
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;