Add support for HHVM in the getting of the PHP executable
This commit is contained in:
parent
a1ae7033c9
commit
539de177ca
@ -33,6 +33,11 @@ class PhpExecutableFinder
|
||||
*/
|
||||
public function find()
|
||||
{
|
||||
// HHVM support
|
||||
if (($hhvm = getenv("PHP_BINARY")) !== false) {
|
||||
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