mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Miscellaneous fixes
This commit is contained in:
parent
48a570615a
commit
18ff40eae6
1 changed files with 8 additions and 9 deletions
|
|
@ -15,13 +15,13 @@ class Debug
|
|||
/**
|
||||
* Store log entries here.
|
||||
*/
|
||||
protected static $_aliases = [];
|
||||
protected static $_entries = [];
|
||||
protected static $_errors = [];
|
||||
protected static $_queries = [];
|
||||
protected static $_slow_queries = [];
|
||||
protected static $_slow_triggers = [];
|
||||
protected static $_slow_widgets = [];
|
||||
protected static $_aliases = array();
|
||||
protected static $_entries = array();
|
||||
protected static $_errors = array();
|
||||
protected static $_queries = array();
|
||||
protected static $_slow_queries = array();
|
||||
protected static $_slow_triggers = array();
|
||||
protected static $_slow_widgets = array();
|
||||
|
||||
/**
|
||||
* Get all entries.
|
||||
|
|
@ -112,7 +112,6 @@ class Debug
|
|||
// Get the backtrace.
|
||||
$backtrace_args = defined('\DEBUG_BACKTRACE_IGNORE_ARGS') ? \DEBUG_BACKTRACE_IGNORE_ARGS : 0;
|
||||
$backtrace = debug_backtrace($backtrace_args);
|
||||
array_shift($backtrace);
|
||||
|
||||
// Create a log entry.
|
||||
$entry = (object)array(
|
||||
|
|
@ -161,7 +160,7 @@ class Debug
|
|||
// Prepare the error entry.
|
||||
self::$_errors[] = $errinfo = (object)array(
|
||||
'type' => self::getErrorType($errno),
|
||||
'time' => microtime(),
|
||||
'time' => microtime(true),
|
||||
'message' => $errstr,
|
||||
'file' => $errfile,
|
||||
'line' => $errline,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue