Commit 3c05ee51 by Alexander Makarov

Merge pull request #2001 from djagya/1783-using-VarDumper-instead-var_export

Using VarDumper::dumpAsString() instead var_export() in the Request pane...
parents 90af6453 a33907f6
......@@ -4,6 +4,7 @@ Yii Framework 2 debug extension Change Log
2.0.0 beta under development
----------------------------
- Bug #1783: Using VarDumper::dumpAsString() instead var_export(), because var_export() does not handle circular references. (djagya)
- Bug #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled (qiangxue)
- Bug #1747: Fixed problems with displaying toolbar on small screens (cebe)
- Bug #1827: Debugger toolbar is loaded twice if an action is calling `run()` to execute another action (qiangxue)
......
<?php
use yii\helpers\Html;
use yii\helpers\VarDumper;
/**
* @var string $caption
......@@ -25,7 +26,7 @@ use yii\helpers\Html;
<?php foreach($values as $name => $value): ?>
<tr>
<th style="width: 200px;"><?= Html::encode($name) ?></th>
<td><?= htmlspecialchars(var_export($value, true), ENT_QUOTES|ENT_SUBSTITUTE, \Yii::$app->charset, true) ?></td>
<td><?= htmlspecialchars(VarDumper::dumpAsString($value), ENT_QUOTES|ENT_SUBSTITUTE, \Yii::$app->charset, true) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
......
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