Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.10.6
-
Fix Version/s: 1.10.7
-
Component/s: Zend_Application
-
Labels:None
Description
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.
Issue Links
| This issue duplicates: | ||||
| ZF-10199 | CLONE -getOption not working with uppercase $key |
|
|
|
Sorry, It's fixed on the 1.10.7, and in the svn. My mistake