mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +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.
|
* Store log entries here.
|
||||||
*/
|
*/
|
||||||
protected static $_aliases = [];
|
protected static $_aliases = array();
|
||||||
protected static $_entries = [];
|
protected static $_entries = array();
|
||||||
protected static $_errors = [];
|
protected static $_errors = array();
|
||||||
protected static $_queries = [];
|
protected static $_queries = array();
|
||||||
protected static $_slow_queries = [];
|
protected static $_slow_queries = array();
|
||||||
protected static $_slow_triggers = [];
|
protected static $_slow_triggers = array();
|
||||||
protected static $_slow_widgets = [];
|
protected static $_slow_widgets = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all entries.
|
* Get all entries.
|
||||||
|
|
@ -112,7 +112,6 @@ class Debug
|
||||||
// Get the backtrace.
|
// Get the backtrace.
|
||||||
$backtrace_args = defined('\DEBUG_BACKTRACE_IGNORE_ARGS') ? \DEBUG_BACKTRACE_IGNORE_ARGS : 0;
|
$backtrace_args = defined('\DEBUG_BACKTRACE_IGNORE_ARGS') ? \DEBUG_BACKTRACE_IGNORE_ARGS : 0;
|
||||||
$backtrace = debug_backtrace($backtrace_args);
|
$backtrace = debug_backtrace($backtrace_args);
|
||||||
array_shift($backtrace);
|
|
||||||
|
|
||||||
// Create a log entry.
|
// Create a log entry.
|
||||||
$entry = (object)array(
|
$entry = (object)array(
|
||||||
|
|
@ -161,7 +160,7 @@ class Debug
|
||||||
// Prepare the error entry.
|
// Prepare the error entry.
|
||||||
self::$_errors[] = $errinfo = (object)array(
|
self::$_errors[] = $errinfo = (object)array(
|
||||||
'type' => self::getErrorType($errno),
|
'type' => self::getErrorType($errno),
|
||||||
'time' => microtime(),
|
'time' => microtime(true),
|
||||||
'message' => $errstr,
|
'message' => $errstr,
|
||||||
'file' => $errfile,
|
'file' => $errfile,
|
||||||
'line' => $errline,
|
'line' => $errline,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue