ZF-9272: Zend_View_Helper_Navigation_HelperAbstract throws Exception in __toString Method on set_error_handler as it's threating errors as exception

Issue Type: Bug Created: 2010-02-26T07:12:18.000+0000 Last Updated: 2012-05-25T12:49:08.000+0000 Status: Open Fix version(s): Reporter: Sven Ullmann (double1981) Assignee: Frank Brückner (frosch) Tags: - Zend_Navigation

Related issues: Attachments:


If an user has defined php to throw exceptions using set_error_handler. The following Method becomes an unexecutable parsing error with the message that __toString() must not throw an exception. Therefore the Error is not catchable and the script not executable.

Version: Zend Framework 1.10.1 File: ZendFramework-1.10.1/library/Zend/View/Helper/Navigation/HelperAbstract.php Line: Method __toString() on Line 516



Posted by Sven Ullmann (double1981) on 2010-02-27T23:00:06.000+0000

The error accurs if a resource has not been found by the acl. Through trigger_error() it throws an exception if the user has defined that all errors should be returned as exception.

Posted by Frank Brückner (frosch) on 2012-05-25T12:49:08.000+0000

Hi Sven, can you provide a small example to reproduce the problem? Thanks!

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.