function display_message($message, $file, $line, $level, $dump = false) { $using_cli = isset($_SERVER['HTTP_USER_AGENT']) ? false : true; display_message_start($using_cli, $level); display_message_echo($message, $dump, $file, $line); display_message_end($using_cli, $level); }
function display_message($message, $file, $line, $level, $dump = false) { $using_cli = isset($_SERVER['HTTP_USER_AGENT']) ? false : true; if (is_array($message) || substr($message, 0, 11) !== 'DOMDocument') { display_message_start($using_cli, $level); display_message_echo($message, $dump, $file, $line); display_message_end($using_cli, $level); } }