protected function parse($data = null, $filename = null)
    {
        if (!$data) {
            $error = error_get_last();

            // Parse functions may return NULL but set no error if the string contains no parsable data
            if (!is_array($error)) {
                $error["message"] = "No parsable content in data.";
            }

            $error["file"] = $filename;

            // if string contains no parsable data, no error is set, resulting in any previous error
            // persisting in error_get_last(). in php 7 this can be addressed with error_clear_last()
            if (function_exists("error_clear_last")) {
                error_clear_last();
            }

            throw new ParseException($error);
        }

        return $this->expandDottedKey($data);
    }
protected function parse($data = null, $filename = null)
    {
        if (!$data) {
            $error = error_get_last();

            // Parse functions may return NULL but set no error if the string contains no parsable data
            if (!is_array($error)) {
                $error["message"] = "No parsable content in data.";
            }

            $error["file"] = $filename;

            // if string contains no parsable data, no error is set, resulting in any previous error
            // persisting in error_get_last(). in php 7 this can be addressed with error_clear_last()
            if (function_exists("error_clear_last")) {
                error_clear_last();
            }

            throw new ParseException($error);
        }

        return $this->expandDottedKey($data);
    }
protected function parse ( $ data = null , $ filename = null ) { if ( ! $ data ) { $ error = error_get_last ( ) ; // Parse functions may return NULL but set no error if the string contains no parsable data if ( ! is_array ( $ error ) ) { $ error [ "message" ] = "No parsable content in data." ; } $ error [ "file" ] = $ filename ; // if string contains no parsable data, no error is set, resulting in any previous error // persisting in error_get_last(). in php 7 this can be addressed with error_clear_last() if ( function_exists ( "error_clear_last" ) ) { error_clear_last ( ) ; } throw new ParseException ( $ error ) ; } return $ this -> expandDottedKey ( $ data ) ; }
Completes parsing of INI data

@param  array   $data
@param  strring $filename

@throws ParseException If there is an error parsing the INI data
Completes parsing of INI data