Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Locale
-
Labels:None
-
Fix Version Priority:Nice to Have
Description
1.
isset(self::$_localeData[$locale])
// instead of
array_key_exists($locale, self::$_localeData)
2.
if ( isset(self::$_localeData[$locale]) && ($locale == 'root' || self::$_localeData[$locale] === false) ) { // .... } // instead of if (($locale == "auto") or ($locale == "root") or ($locale == "environment") or ($locale == "browser")) { // ... } // -> OK this isn't for performance but for flexibly
3. cache return value of getBrowser and if the environment variable must changable add an argument e.g. $reparse=false
Could you please evaluate and categorize as necessary.