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 4867d14 commit fb1e6e0Copy full SHA for fb1e6e0
shell_lib.php
@@ -41,18 +41,20 @@ public static function exec(array $commands)
41
/**
42
* Returning an absolute path to "php". It is useful, cause just "php" not working!
43
* @return string
44
+ * @deprecated
45
*/
46
public static function php()
47
{
48
if (defined('PHP_BINDIR') && PHP_BINDIR) {
49
return PHP_BINDIR . '/php';
- } else if (defined('PHP_BINARY') && PHP_BINARY) {
50
+ }
51
+ if (defined('PHP_BINARY') && PHP_BINARY) {
52
return PHP_BINARY . '/php';
- } else if (defined('PHP_BINDER') && PHP_BINDER) {
53
54
+ if (defined('PHP_BINDER') && PHP_BINDER) {
55
return PHP_BINDER . '/php';
- } else {
- return 'php';
56
}
57
+ return 'php';
58
59
60
0 commit comments