Lines Matching refs:error
25 foreach ($errors as $error) {
26 echo display_xml_error($error, $xml);
33 function display_xml_error($error, $xml)
35 $return = $xml[$error->line - 1] . "\n";
36 $return .= str_repeat('-', $error->column) . "^\n";
38 switch ($error->level) {
40 $return .= "Warning $error->code: ";
43 $return .= "Error $error->code: ";
46 $return .= "Fatal Error $error->code: ";
50 $return .= trim($error->message) . "\n Line: $error->line" . "\n Column: $error->column";
52 if ($error->file) {
53 $return .= "\n File: $error->file";