Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silent fail on Json::encode Error #33

Closed
michalbundyra opened this issue Jan 15, 2020 · 1 comment · Fixed by #125
Closed

silent fail on Json::encode Error #33

michalbundyra opened this issue Jan 15, 2020 · 1 comment · Fixed by #125

Comments

@michalbundyra
Copy link
Member

https://github.com/zendframework/zend-view/blob/ef3d64b8815a069c60cf7b9a6de636ee26fc9fe0/src/Renderer/JsonRenderer.php#L151

if json_last_error() != 0 no exception ist thrown


Originally posted by @lkainers at zendframework/zend-view#9

@michalbundyra
Copy link
Member Author

Source of the problem is in Zend\Json\Json::encode not in Zend\View\Renderer\JsonRenderer.


Originally posted by @Martin-P at zendframework/zend-view#9 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants