Issues

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

Fixed in ZF-10199.