[Process] fixed HHVM support
This commit is contained in:
parent
539de177ca
commit
876482f1a6
@ -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;
|
||||
|
Reference in New Issue
Block a user