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.
1 parent 532de94 commit 3b79208Copy full SHA for 3b79208
src/Config.php
@@ -179,7 +179,7 @@ class Config
179
*
180
* @var array<string, string>
181
*/
182
- private static $executablePaths = ["php" => PHP_BINARY];
+ private static $executablePaths = [];
183
184
185
/**
@@ -1516,6 +1516,13 @@ public static function getExecutablePath($name)
1516
return $data;
1517
}
1518
1519
+ if ($name === "php") {
1520
+ /*
1521
+ * For php, we know the executable path. There's no need to look it up.
1522
+ */
1523
+ return PHP_BINARY;
1524
+ }
1525
+
1526
if (array_key_exists($name, self::$executablePaths) === true) {
1527
return self::$executablePaths[$name];
1528
0 commit comments