// Look for specific PHP binaries by hosters
if ($hosterSpecificBinary =
$this->
findHostedSpecificBinary()) { return $hosterSpecificBinary;
} // Look for PHP binaries in same place as our fpm/cgi binary
if (\
defined('PHP_BINARY'
)) { $phpPath = \
dirname(\PHP_BINARY
);
$fileName =
explode('-',
basename(\PHP_BINARY
), 2
);
$expectedPath =
$phpPath . \DIRECTORY_SEPARATOR .
$fileName[0
];
if ($this->
isPHPRunning($expectedPath)) { return $expectedPath;
} } // Look into PHP path
$finder =
new ExecutableFinder();
foreach (self::PHP_BINARY_NAMES
as $name) { $binary =
$finder->
find($name);
if ($binary !== null
) {