ZF-8729: Zend_Application_Bootstrap_BootstrapAbstract config keys are not lowercased everywhere
Description
The keys of the config are not handled the same in the class. Everywhere lowercased keys are used except at hasOption($key).
Problem code:
/**
* Is an option present?
*
* @param string $key
* @return bool
*/
public function hasOption($key)
{
return in_array($key, $this->_optionKeys);
}
Suggested fix:
/**
* Is an option present?
*
* @param string $key
* @return bool
*/
public function hasOption($key)
{
return in_array(strtolower($key), $this->_optionKeys);
}
Comments
Posted by Ramon Henrique Ornelas (ramon) on 2010-10-30T05:28:28.000+0000
Fixed in ZF-10199.