Fix #321 incorrect display of objects in debugPrint()

This commit is contained in:
Kijin Sung 2016-03-02 09:40:14 +09:00
parent 60c46901c6
commit 34a86defb6

View file

@ -137,7 +137,7 @@ class Debug
$entry = (object)array(
'type' => 'Debug',
'time' => microtime(true),
'message' => $message,
'message' => unserialize(serialize($message)),
'file' => isset($backtrace[0]['file']) ? $backtrace[0]['file'] : null,
'line' => isset($backtrace[0]['line']) ? $backtrace[0]['line'] : 0,
'backtrace' => $backtrace,