Skip to content

[Profiler] Re-added context information to log list#7806

Closed
mweimerskirch wants to merge 1 commit intosymfony:masterfrom
mweimerskirch:patch-16
Closed

[Profiler] Re-added context information to log list#7806
mweimerskirch wants to merge 1 commit intosymfony:masterfrom
mweimerskirch:patch-16

Conversation

@mweimerskirch
Copy link
Copy Markdown
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #7679
License MIT

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not using yaml_encode anymore in the profiler but json_encode instead. And to avoid blackslashes, you must use |json_encode(64 b-or 256)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I'll change that.
Would (|json_encode(constant("JSON_UNESCAPED_SLASHES") b-or constant("JSON_UNESCAPED_UNICODE"))) be acceptable as well? IMHO constants are more readable than numeric values.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's done this way for a reason: because those constant do not exist on all Symfony PHP supported versions. So, using constants would break on those versions of PHP.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I see. Thanks for the explanation. I modified the pull request accordingly.

fabpot added a commit that referenced this pull request Apr 23, 2013
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #7806).

Discussion
----------

[Profiler] Re-added context information to log list

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7679
| License       | MIT

Commits
-------

55c2044 [Profiler] Re-added context information to log list
@fabpot fabpot closed this Apr 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants