From: Roland Häder Date: Mon, 14 May 2012 21:14:55 +0000 (+0000) Subject: Warning made more clear X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e87d503aab1df972c4c5b6eec1d095a974bb7c2f;p=core.git Warning made more clear --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 370e2ff0..36d2221a 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -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
" . chr(10), $message); + printf('Message: %s
' . chr(10), $message); } // END - if print('
');
@@ -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);
 			}
 		}