Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

fixed 4614: infinite loop in Zend\Log\Formatter::normalize #4616

Closed
wants to merge 2 commits into from
Closed

fixed 4614: infinite loop in Zend\Log\Formatter::normalize #4616

wants to merge 2 commits into from

Conversation

marc-mabe
Copy link
Member

No description provided.

@marc-mabe
Copy link
Member Author

This is the only fix I found for #4614

Because of the PHP bug it's impossible to call normalize for each array entry - so a json_encode on the first level have to be enough and in my opinion it's enough for logging.

It would be helpful if the recursion position would be marked as RECURSION but this is not possible with json_encode -> so it's marked as null

@marc-mabe
Copy link
Member Author

Also set the options JSON_UNESCAPED_[SLASHES|UNICODE] if possible to generate better readable error messages

weierophinney added a commit that referenced this pull request Jun 11, 2013
fixed 4614: infinite loop in Zend\Log\Formatter::normalize
weierophinney added a commit that referenced this pull request Jun 11, 2013
@ghost ghost assigned weierophinney Jun 11, 2013
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
…tfix/4614

fixed 4614: infinite loop in Zend\Log\Formatter::normalize
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants