8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PhpExecutableFinder
PHP_BINARY
1 parent cf89857 commit 4bd01f2Copy full SHA for 4bd01f2
src/Symfony/Component/Process/CHANGELOG.md
@@ -5,6 +5,7 @@ CHANGELOG
5
-----
6
7
* added the `Process::isTtySupported()` method that allows to check for TTY support
8
+ * made `PhpExecutableFinder` look for the `PHP_BINARY` env var when searching the php binary
9
10
4.0.0
11
src/Symfony/Component/Process/PhpExecutableFinder.php
@@ -35,6 +35,14 @@ public function __construct()
35
*/
36
public function find($includeArgs = true)
37
{
38
+ if ($php = getenv('PHP_BINARY')) {
39
+ if (!is_executable($php)) {
40
+ return false;
41
+ }
42
+
43
+ return $php;
44
45
46
$args = $this->findArguments();
47
$args = $includeArgs && $args ? ' '.implode(' ', $args) : '';
48
0 commit comments