Warning made more clear
authorRoland Häder <roland@mxchange.org>
Mon, 14 May 2012 21:14:55 +0000 (21:14 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 14 May 2012 21:14:55 +0000 (21:14 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index 370e2ff..36d2221 100644 (file)
@@ -1346,7 +1346,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                } // END - if
 
                // Construct the full message
-               $stubMessage = sprintf("[%s:] Partial stub!",
+               $stubMessage = sprintf('[%s:] Partial stub!',
                        $methodName
                );
 
@@ -1377,7 +1377,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                // Sorry, there is no other way getting this nice backtrace
                if (!empty($message)) {
                        // Output message
-                       printf("Message: %s<br />" . chr(10), $message);
+                       printf('Message: %s<br />' . chr(10), $message);
                } // END - if
 
                print('<pre>');
@@ -1422,7 +1422,10 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                                // Print message
                                print($message . chr(10));
                        } else {
-                               // DO NOT REWRITE THIS TO app_die() !!!
+                               /*
+                                * BIG FAT NOTE: Do NEVER rewrite this to app_die(), this will
+                                * cause an endless loop.
+                                */
                                die($message);
                        }
                }