diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-16 04:33:05 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-16 04:33:05 +0400 |
commit | 5a19012cc33b2b7eec7c28bb660be5280090adf1 (patch) | |
tree | eb86d6a1067d8cddcf075ac91900168456199318 /libs | |
parent | a73266bfd702777bd94b59b91dc2974ba6306c10 (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.php | 6 |
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 |