From e87d503aab1df972c4c5b6eec1d095a974bb7c2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org> Date: Mon, 14 May 2012 21:14:55 +0000 Subject: [PATCH] Warning made more clear --- inc/classes/main/class_BaseFrameworkSystem.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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<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); } } -- 2.39.5