Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/upgradephp/upgrade.php')
-rw-r--r--libs/upgradephp/upgrade.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php
index c45ee1ca95..5ab68078a8 100644
--- a/libs/upgradephp/upgrade.php
+++ b/libs/upgradephp/upgrade.php
@@ -127,7 +127,11 @@ if (in_array('mysqli', @get_loaded_extensions()) && !function_exists('mysqli_set
if(function_exists('parse_ini_file')) {
// provide a wrapper
function _parse_ini_file($filename, $process_sections = false) {
- return file_exists($filename) ? parse_ini_file($filename, $process_sections) : false;
+ if(!file_exists($filename)) {
+ return false;
+ }
+ // Note: INI_SCANNER_RAW is important here!
+ return parse_ini_file($filename, $process_sections, INI_SCANNER_RAW);
}
} else {
// we can't redefine parse_ini_file() if it has been disabled