mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-16 23:48:16 +08:00
Using VarDumper::dumpAsString() instead var_export() in the Request panel
This commit is contained in:
@ -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)
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?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>
|
||||
|
Reference in New Issue
Block a user