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


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



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.

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