Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.5
-
Fix Version/s: 1.10.6
-
Component/s: Zend_Locale
-
Labels:None
Description
After updating from 1.10.4 to 1.10.5 i got a php warning:
Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /opt/zf/1.10.5/Zend/Locale.php on line 812
Line 812 is:
|| (is_array($locale) && array_key_exists($locale, self::$_localeData))
But $locale may not be an array for array_key_exists(). So I guess, just a ! is missing:
|| (!is_array($locale) && array_key_exists($locale, self::$_localeData))
How can one reproduce the issue?