Skip to content

Commit

Permalink
Fixes #5349 Adding flag INI_SCANNER_RAW to prevent error
Browse files Browse the repository at this point in the history
This should fix the build
  • Loading branch information
mattab committed Jun 16, 2014
1 parent a73266b commit 5a19012
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/upgradephp/upgrade.php
Expand Up @@ -127,7 +127,11 @@ function mysqli_set_charset($link, $charset)
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
Expand Down

0 comments on commit 5a19012

Please sign in to comment.