Zend Framework

Zend_Application_Bootstrap_Bootstrapper::hasOption() doesn't ignore case of parameter $key

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.10.0
  • Fix Version/s: None
  • Component/s: Zend_Application
  • Labels:
    None

Description

Internally all option keys are stored lowercase. The method hasOption() doesn't convert the given key to lowercase before looking it up. This also affects the method getOption() which uses hasOption().

<application.ini>
[production]
phpSettings.display_startup_errors = 0
</application.ini>

$bootstrap->hasOption('phpSettings') return false, should return true

$bootstrap->hasOption('phpsettings') returns true

Issue Links

Activity

Hide
Marc Hodgins added a comment -

Fixed in r22664 - see ticket ZF-10199

Show
Marc Hodgins added a comment - Fixed in r22664 - see ticket ZF-10199

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: