Used exit() (also app_die()->app_exit()) because die() is an alias of exit nowadays
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 76c8908..da54f83 100644 (file)
@@ -1316,7 +1316,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                );
 
                // 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()
@@ -1419,7 +1419,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                        $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
@@ -1431,8 +1431,8 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
 
        /**
         * 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)
@@ -1458,7 +1458,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
 
                        if ($doPrint === false) {
                                // Die here if not printed
-                               die();
+                               exit();
                        } // END - if
                } else {
                        // Are debug times enabled?
@@ -1473,7 +1473,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                                print($message . chr(10));
                        } else {
                                // Die here
-                               die($message);
+                               exit($message);
                        }
                }
        }