[Process] PHP_BINARY return the current process

This commit is contained in:
stealth35 2012-03-02 14:33:12 +01:00
parent 241e4fccbd
commit e2fc3cde90

View File

@ -33,7 +33,7 @@ class PhpExecutableFinder
*/
public function find()
{
if (defined('PHP_BINARY') && PHP_BINARY) {
if (defined('PHP_BINARY') && PHP_BINARY && ('php' === pathinfo(PHP_BINARY, PATHINFO_FILENAME))) {
return PHP_BINARY;
}