Skip to content

Commit acbbe8a

Browse files
committed
[Process] introduced usage of PHP_BINARY (available as of PHP 5.4)
1 parent 43a6aa9 commit acbbe8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Process/PhpExecutableFinder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public function __construct()
3333
*/
3434
public function find()
3535
{
36+
if (defined('PHP_BINARY') && PHP_BINARY) {
37+
return PHP_BINARY;
38+
}
39+
3640
if ($php = getenv('PHP_PATH')) {
3741
if (!is_executable($php)) {
3842
return false;

0 commit comments

Comments
 (0)