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
Posted by Ramon Henrique Ornelas (ramon) on 2010-08-21T13:14:58.000+0000
In a issue similar the this was fixed ZF-10252 with r22872.
Posted by Henrique Moody (henriquemoody) on 2010-08-22T10:49:32.000+0000
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.
Posted by Henrique Moody (henriquemoody) on 2010-08-25T15:21:34.000+0000
In the 1.10.8 release it was solved.
Thanks!