PHP bin is not always php5 (#2350)

not everybody names php binary as php5
This commit is contained in:
Luis Daniel Lucio Quiroz
2017-02-07 21:31:52 -07:00
committed by FusionPBX
parent 3c229a7ae9
commit d6f888f6a9
+4 -1
View File
@@ -210,9 +210,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") { if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") {
$php_bin = 'php.exe'; $php_bin = 'php.exe';
} }
else { elseif (file_exists(PHP_BINDIR."/php5")) {
$php_bin = 'php5'; $php_bin = 'php5';
} }
else {
$php_bin = 'php';
}
//add or update the database //add or update the database
if ($_POST["persistformvar"] != "true") { if ($_POST["persistformvar"] != "true") {