Issues

ZF-7690: $this->_optionKeys is not updated if additional top level options are set in Zend_Application_Bootstrap_BootstrapAbstract

Description

It looks as though if you decided for some reason to add top-level options later, it would not update $this->_optionKeys

Zend_Application_Bootstrap_BootstrapAbstract:115 {quote} $this->_options = $this->mergeOptions($this->_options, $options);

    $options = array_change_key_case($options, CASE_LOWER);
    $this->_optionKeys = array_keys($options);

{quote} optionKeys is only being updated with the new options. You could probably get away with changing the last line to {quote} $this->_optionKeys += array_keys($options); {quote} or {quote} $this->_optionKeys = array_keys($this->_options); {quote} Regards

Comments

I ended up needing to do:


$this->_optionKeys = array_merge($this->_optionKeys, array_keys($options));

Fix applied in trunk and 1.9 release branch.