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 3394a85ae13d75faab0acd1316edfa4ab50fb510..d8cf17a68e9309b408e7efc5757d121aa43fccb1 100644 (file)
@@ -68,7 +68,7 @@ class XmlParser extends BaseParser implements Parseable {
                        self::createDebugInstance(__CLASS__)->debugOutput('Empty content! Backtrace: <pre>');
                        debug_print_backtrace();
                        self::createDebugInstance(__CLASS__)->debugOutput('</pre>');
-                       die();
+                       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(__METHOD__ . ':<pre>'.htmlentities($content).'</pre>');
+                       //* DEBUG: */ exit(__METHOD__ . ':<pre>'.htmlentities($content).'</pre>');
                        throw new XmlParserException(array($this, $xmlParser), self::EXCEPTION_XML_PARSER_ERROR);
                } // END - if