SCRIPTS: PHP bin is not always php5 (#2352)

This commit is contained in:
Luis Daniel Lucio Quiroz
2017-02-07 23:32:39 -05:00
committed by FusionPBX
parent 6b6a0dab18
commit 7ec779419b

View File

@@ -213,8 +213,11 @@ if (!class_exists('scripts')) {
if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") {
$tmp .= " php_bin = \"php.exe\";\n";
}
elseif (file_exists(PHP_BINDIR."/php5")) {
$tmp .= " php_bin = \"php5\";\n";
}
else {
$tmp .= " php_bin = \"php5\";\n";
$tmp .= " php_bin = \"php\";\n";
}
$tmp .= $this->correct_path(" document_root = [[".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."]];\n");
$tmp .= $this->correct_path(" project_path = [[".PROJECT_PATH."]];\n");