diff --git a/resources/switch.php b/resources/switch.php index 28b47ffb2f..4fd332b9f2 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -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';