lib/Util.php
public static function readAndMergeObject($filename, $content, $flags = 0,
                                              $ignoredSection = array())
    {
        if (!file_exists($filename)) {
            return false;
        }

        $newContent = @parse_ini_file($filename, true, INI_SCANNER_TYPED);
        if ($newContent === false) {
            return false;
        }

        return self::mergeIniObjectContents($content, $newContent, $flags, $ignoredSection);
    }
public static function readAndMergeObject($filename, $content, $flags = 0,
                                              $ignoredSection = array())
    {
        if (!file_exists($filename)) {
            return false;
        }

        $newContent = @parse_ini_file($filename, true, INI_SCANNER_TYPED);
        if ($newContent === false) {
            return false;
        }

        return self::mergeIniObjectContents($content, $newContent, $flags, $ignoredSection);
    }
read an ini file and merge its parameters to the given object.
Useful to merge to config files.
Parameters whose name starts with a '_' are not merged.

@param string $filename the path and the name of the file to read
@param object $content
@param int    $flags    a combination of constants NOT_MERGE_*, NORMAL_MERGE_*
@param array  $ignoredSection list of sections or top level parameters that
should not be merged

@return object|false the content of the file or false if error during parsing the file

@since 2.0