zendframework / zend-view

View component from Zend Framework
BSD 3-Clause "New" or "Revised" License
49 stars 61 forks source link

silent fail on Json::encode Error #9

Open lkainers opened 9 years ago

lkainers commented 9 years ago

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

if json_last_error() != 0 no exception ist thrown

Martin-P commented 9 years ago

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

michalbundyra commented 4 years ago

This repository has been closed and moved to laminas/laminas-view; a new issue has been opened at https://github.com/laminas/laminas-view/issues/33.