ZF-4376: Zend_Locale::isLocale() return a wrong value


The phpdoc says: @return false|string False if given locale is not a locale, else the locale identifier is returned but

Zend_Locale::isLocale("en"); // -> returns true instead of "en"

I often use the following but now it doesn't work:

$localeStr = Zend_Locale::isLocale($locale);
if (!$localeStr) {
   // do anything
} else {
   // use the locale identifier

since revision 10563


API doc fixed with r11517