Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
a33907f6
Commit
a33907f6
authored
Jan 16, 2014
by
djagya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using VarDumper::dumpAsString() instead var_export() in the Request panel
parent
90af6453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG.md
extensions/debug/CHANGELOG.md
+1
-0
table.php
extensions/debug/views/default/panels/request/table.php
+2
-1
No files found.
extensions/debug/CHANGELOG.md
View file @
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)
...
...
extensions/debug/views/default/panels/request/table.php
View file @
a33907f6
<?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
,
tr
ue
),
ENT_QUOTES
|
ENT_SUBSTITUTE
,
\Yii
::
$app
->
charset
,
true
)
?>
</td>
<td>
<?=
htmlspecialchars
(
VarDumper
::
dumpAsString
(
$val
ue
),
ENT_QUOTES
|
ENT_SUBSTITUTE
,
\Yii
::
$app
->
charset
,
true
)
?>
</td>
</tr>
<?php
endforeach
;
?>
</tbody>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment