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

Issue Type: Bug Created: 2010-02-03T13:40:46.000+0000 Last Updated: 2010-10-26T02:17:54.000+0000 Status: Resolved Fix version(s): Reporter: Horst Tellioglu (tellioglu) Assignee: Marc Hodgins (mjh_ca) Tags: - Zend_Application

Related issues: - ZF-10199



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


Posted by Marc Hodgins (mjh_ca) on 2010-10-26T02:17:52.000+0000

Fixed in r22664 - see ticket ZF-10199

Have you found an issue?

See the Overview section for more details.


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

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