ZF-10071: Default ErrorController created by Zend_Tool generates notices.

Description

When I create a project with Zend_Tool, for exemple:

$ cd /var/www $ zf create project test

And after, in the browser I call: "http://localhost/test/public/error/error", I see 3 notices in the development enviroment:

Notice: Trying to get property of non-object in /var/www/test/application/controllers/ErrorController.php on line 10 Notice: Trying to get property of non-object in /var/www/test/application/controllers/ErrorController.php on line 33 Notice: Trying to get property of non-object in /var/www/test/application/controllers/ErrorController.php on line 36

This occurred becouse $this->_getParam('error_handler') is null when I am in "/error/error".

Before proceeding this line, must have a verification if $this->_getParam('error_handler') is instance of ArrayObject.

Comments

In a issue similar the this was fixed ZF-10252 with r22872.

This does not solve the problem because the parameter "error_handler" can be passed through the URL:

/error/error?error_handler=123

You must see my diff, it checks if "error_handler" is instance of ArrayObject.

In the 1.10.8 release it was solved.

Thanks!