);
// Output it
- ApplicationEntryPoint::app_die(sprintf("<div class=\"debug_header\">%s debug output:</div><div class=\"debug_content\">%s</div>\nLoaded includes: <div class=\"debug_include_list\">%s</div>",
+ ApplicationEntryPoint::app_exit(sprintf("<div class=\"debug_header\">%s debug output:</div><div class=\"debug_content\">%s</div>\nLoaded includes: <div class=\"debug_include_list\">%s</div>",
$this->__toString(),
$content,
ClassLoader::getSelfInstance()->getPrintableIncludeList()
$debugInstance = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_class'));
} catch (NullPointerException $e) {
// Didn't work, no instance there
- die('Cannot create debugInstance! Exception=' . $e->__toString() . ', message=' . $e->getMessage());
+ exit('Cannot create debugInstance! Exception=' . $e->__toString() . ', message=' . $e->getMessage());
}
// Empty string should be ignored and used for testing the middleware
/**
* Outputs a debug message whether to debug instance (should be set!) or
- * dies with or ptints the message. Do NEVER EVER rewrite the die() call to
- * ApplicationEntryPoint::app_die(), this would cause an endless loop.
+ * dies with or ptints the message. Do NEVER EVER rewrite the exit() call to
+ * ApplicationEntryPoint::app_exit(), this would cause an endless loop.
*
* @param $message Message we shall send out...
* @param $doPrint Whether print or die here (default: print)
if ($doPrint === false) {
// Die here if not printed
- die();
+ exit();
} // END - if
} else {
// Are debug times enabled?
print($message . chr(10));
} else {
// Die here
- die($message);
+ exit($message);
}
}
}
// Render it here
$this->getTemplateInstance()->renderXmlContent($menuContent);
- //die(__METHOD__ . ':!OK');
+ //exit(__METHOD__ . ':!OK');
}
/**
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);
// 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
$this->assignVariable($var, $varMatches[3][$key]);
} elseif (!empty($varMatches[2][$key])) {
// @TODO Non-string found so we need some deeper analysis...
- ApplicationEntryPoint::app_die('Deeper analysis not yet implemented!');
+ ApplicationEntryPoint::app_exit('Deeper analysis not yet implemented!');
}
} // END - foreach
}
global $_CONFIG;
include "templates/zurueck.html";
include "templates/fuss.html";
- die();
+ exit();
}
// Fehlermeldung ausgeben und beenden
require($fqfn);
} else {
// Layer is missing!
- ApplicationEntryPoint::app_die(sprintf("[Main:] Database layer is missing! (%s) -> R.I.P.",
+ ApplicationEntryPoint::app_exit(sprintf("[Main:] Database layer is missing! (%s) -> R.I.P.",
FrameworkConfiguration::getSelfInstance()->getConfigEntry('db_type')
));
}
// If the basePath is false it is invalid
if ($basePath2 === false) {
/* @todo: Do not die here. */
- die(__METHOD__ . ':Cannot read ' . $basePath . ' !');
+ exit(__METHOD__ . ':Cannot read ' . $basePath . ' !');
} else {
// Set base path
$basePath = $basePath2;