ZF2-68: Zend View escape for helpers fails if variables set to view as array

Issue Type: Bug Created: 2011-09-13T17:19:56.000+0000 Last Updated: 2011-09-14T19:58:22.000+0000 Status: Resolved Fix version(s): Reporter: Vasilii Sheredeko (piphon) Assignee: Evgheni Poleacov (zendmania) Tags: - Zend\View

Related issues: Attachments:


Hello development team!

Some of the helpers in Zend View hoped that PHPRenderer::vars() returns Zend\View\Variables, e.g. Navigation\Menu, but with PHPRenderer::setVars() we can set array and PHPRenderer::vars() returns array. This subsequently leads to an error:

Fatal error: Call to a member function escape() on a non-object in Zend/View/Helper/Navigation/Menu.php on line 247

GIT Commit in repository zendframework/zf2 on github: a40d1a65ff58679b6378ca39fa25a3944b35fc4f

P.S. I put a bug in the right place or there is another place for the collection of such errors (during development)?

Good luck with the Great project!!


Posted by Evgheni Poleacov (zendmania) on 2011-09-14T12:34:11.000+0000

Fixes in pull requested:

Posted by Evgheni Poleacov (zendmania) on 2011-09-14T19:58:22.000+0000

Fixed by next commit: c4f8d44eec6f09681d0ad1e30a9a2dbb3e4631e7

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.