Issues

ZF-8729: Zend_Application_Bootstrap_BootstrapAbstract config keys are not lowercased everywhere

Issue Type: Bug Created: 2010-01-06T13:06:39.000+0000 Last Updated: 2010-10-30T05:28:29.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Daco Harkes (dc.harkes) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Application

Related issues: Attachments:

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:

<pre class="highlight">
    /**
     * Is an option present?
     * 
     * @param  string $key 
     * @return bool
     */
    public function hasOption($key)
    {
        return in_array($key, $this->_optionKeys);
    }

Suggested fix:

<pre class="highlight">
    /**
     * 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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts