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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4e5079ab
Commit
4e5079ab
authored
May 04, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #3327: "Unable to find debug data" when logging objects with circular references
parent
0b7f6491
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Target.php
framework/log/Target.php
+2
-1
No files found.
framework/CHANGELOG.md
View file @
4e5079ab
...
...
@@ -23,6 +23,7 @@ Yii Framework 2 Change Log
-
Bug #3236: Return value for DateTime->format('U') casted to double to allow correct date formatting (pgaultier)
-
Bug #3268: Fixed the bug that the schema name in a table name was not respected by
`yii\db\mysql\Schema`
(terazoid, qiangxue)
-
Bug #3311: Fixed the bug that
`yii\di\Container::has()`
did not return correct value (mgrechanik, qiangxue)
-
Bug #3327: Fixed "Unable to find debug data" when logging objects with circular references (jarekkozak, samdark)
-
Enh #2264:
`CookieCollection::has()`
will return false for expired or removed cookies (qiangxue)
-
Enh #2837: Error page now shows arguments in stack trace method calls (samdark)
-
Enh #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper (exromany, qiangxue)
...
...
framework/log/Target.php
View file @
4e5079ab
...
...
@@ -10,6 +10,7 @@ namespace yii\log;
use
Yii
;
use
yii\base\Component
;
use
yii\base\InvalidConfigException
;
use
yii\helpers\VarDumper
;
use
yii\web\Request
;
/**
...
...
@@ -115,7 +116,7 @@ abstract class Target extends Component
$context
=
[];
foreach
(
$this
->
logVars
as
$name
)
{
if
(
!
empty
(
$GLOBALS
[
$name
]))
{
$context
[]
=
"
\$
{
$name
}
= "
.
var_export
(
$GLOBALS
[
$name
],
true
);
$context
[]
=
"
\$
{
$name
}
= "
.
VarDumper
::
dumpAsString
(
$GLOBALS
[
$name
]
);
}
}
...
...
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