From 42ae1cc58a6446e38cfe658a99cd6c54d40a48f1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 31 May 2005 23:45:13 +0000 Subject: [PATCH] On XML parsing fail, use trigger_error() not some random print() statement --- xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml.php b/xml.php index e2bd77a..dff2034 100644 --- a/xml.php +++ b/xml.php @@ -125,7 +125,7 @@ class XML_Parser $error['string'] = xml_error_string($error['code']); $error['line'] = xml_get_current_line_number($this->parser); $error['column'] = xml_get_current_column_number($this->parser); - print(sprintf("XML Error: %s (%d) at line %d colunn %d", $error['string'], $error['code'], $error['line'], $error['column'])); + trigger_error(sprintf("XML Error: %s (%d) at line %d colunn %d", $error['string'], $error['code'], $error['line'], $error['column']), E_USER_ERROR); exit; } -- 2.22.5