Issue Type: Bug Created: 2010-08-10T04:08:10.000+0000 Last Updated: 2010-08-10T05:30:23.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)
Reporter: Ricardo Melo (rjsmelo) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Application
Related issues: - ZF-10199
This issue occurs when you have a key with upper case characteres like appOptions, and you try to use $this->getOption('appOptions') inside the Bootstrap.
It seems to be related to a missing strtolower on the method hasOption of the class Zend_Application_Bootstrap_BootstrapAbstract.
As so, I think the method hasOption should be changed to include return in_array(strtolower($key), $this->_optionKeys); this way the getOption method will behave the same way on both Zend_Application_Bootstrap_BootstrapAbstract and Zend_Application, as expected.
This issue seams related to ZF-7742, where the same fix has been applied Zend_Application for solving a similar issue (and should have been applied also to Zend_Application_Bootstrap_BootstrapAbstract
As far as I know this affects all releases of ZF.
A simple workaround is to override the hasOption method when extending Zend_Application_Bootstrap_Bootstrap.
Posted by Ricardo Melo (rjsmelo) on 2010-08-10T05:07:16.000+0000
Sorry, It's fixed on the 1.10.7, and in the svn. My mistake
Posted by Ramon Henrique Ornelas (ramon) on 2010-08-10T05:22:50.000+0000
Fixed in the version 1.10.7 in the issue ZF-10199.
Thanks by your report.
Have you found an issue?
See the Overview section for more details.