Commit 82518b5a authored by qinjunkun's avatar qinjunkun

var_export 没法解决循环引用问题,部分情况会导致内存溢出

parent 1977f731
......@@ -453,7 +453,7 @@ if (!function_exists('putLog')) {
$stream = make(StreamHandler::class, [$dir . $filename, Logger::WARNING]);
$fire = make(FirePHPHandler::class);
if (is_array($output)) {
$output = var_export($output, true);
$output = print_r($output, true);
}
$output = '[ ' . date('Y-m-d H:i:s', time()) . ' ] --- ' . $output;
$formatter = new LineFormatter($output . "\r\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment