Skip to content

Commit fb1e6e0

Browse files
committed
fix
1 parent 4867d14 commit fb1e6e0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

shell_lib.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,20 @@ public static function exec(array $commands)
4141
/**
4242
* Returning an absolute path to "php". It is useful, cause just "php" not working!
4343
* @return string
44+
* @deprecated
4445
*/
4546
public static function php()
4647
{
4748
if (defined('PHP_BINDIR') && PHP_BINDIR) {
4849
return PHP_BINDIR . '/php';
49-
} else if (defined('PHP_BINARY') && PHP_BINARY) {
50+
}
51+
if (defined('PHP_BINARY') && PHP_BINARY) {
5052
return PHP_BINARY . '/php';
51-
} else if (defined('PHP_BINDER') && PHP_BINDER) {
53+
}
54+
if (defined('PHP_BINDER') && PHP_BINDER) {
5255
return PHP_BINDER . '/php';
53-
} else {
54-
return 'php';
5556
}
57+
return 'php';
5658
}
5759
}
5860

0 commit comments

Comments
 (0)