]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/parser/xml/class_XmlParser.php
Used exit() (also app_die()->app_exit()) because die() is an alias of exit nowadays
[core.git] / inc / classes / main / parser / xml / class_XmlParser.php
index 6fb429ab99ddf755a9ea88bc6b01e220b6baface..d8cf17a68e9309b408e7efc5757d121aa43fccb1 100644 (file)
@@ -65,10 +65,10 @@ class XmlParser extends BaseParser implements Parseable {
                // Convert all to UTF8
                if (empty($content)) {
                        // No empty content!
-                       $this->debugOuput('Empty content! Backtrace: <pre>');
+                       self::createDebugInstance(__CLASS__)->debugOutput('Empty content! Backtrace: <pre>');
                        debug_print_backtrace();
-                       $this->debugOuput('</pre>');
-                       die();
+                       self::createDebugInstance(__CLASS__)->debugOutput('</pre>');
+                       exit();
                } elseif (function_exists('recode')) {
                        // Recode found, so use it
                        $content = recode('html..utf8', $content);
@@ -102,7 +102,7 @@ class XmlParser extends BaseParser implements Parseable {
                // Now parse the XML tree
                if (!xml_parse($xmlParser, $content)) {
                        // Error found in XML!
-                       //* DEBUG: */ die('<pre>'.htmlentities($content).'</pre>');
+                       //* DEBUG: */ exit(__METHOD__ . ':<pre>'.htmlentities($content).'</pre>');
                        throw new XmlParserException(array($this, $xmlParser), self::EXCEPTION_XML_PARSER_ERROR);
                } // END - if