Index: branches/5.2.x/core/kernel/utility/logger.php =================================================================== --- branches/5.2.x/core/kernel/utility/logger.php +++ branches/5.2.x/core/kernel/utility/logger.php @@ -917,7 +917,11 @@ } } - // next line also trigger attached error handlers + if ( PHP_SAPI === 'cli' ) { + throw new RuntimeException($error_msg); + } + + // Next line also trigger attached error handlers. trigger_error($error_msg, E_USER_WARNING); return true;