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
path: root/libs
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-06-16 04:33:05 +0400
committermattab <matthieu.aubry@gmail.com>2014-06-16 04:33:05 +0400
commit5a19012cc33b2b7eec7c28bb660be5280090adf1 (patch)
treeeb86d6a1067d8cddcf075ac91900168456199318 /libs
parenta73266bfd702777bd94b59b91dc2974ba6306c10 (diff)
Fixes #5349 Adding flag INI_SCANNER_RAW to prevent error
This should fix the build
Diffstat (limited to 'libs')
-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