Update switch.php at Line 1282 detecting windows (#3007)

if (stristr(PHP_OS, 'WIN')) isn't specific enough, it will be true for Darwin or Windows.
This commit is contained in:
futureFry 2018-02-28 19:45:50 -08:00 committed by FusionPBX
parent bb30c81efc
commit ffbf67b2a9
1 changed files with 1 additions and 1 deletions

View File

@ -1279,7 +1279,7 @@ if (!function_exists('switch_conf_xml')) {
$file_contents = file_get_contents($path."/autoload_configs/switch.conf.xml");
//prepare the php variables
if (stristr(PHP_OS, 'WIN')) {
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$php_bin = win_find_php('php.exe');
if(!$php_bin){ // relay on system path
$php_bin = 'php.exe';