ZF-4376: Zend_Locale::isLocale() return a wrong value
Description
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
Comments
Posted by Thomas Weidner (thomas) on 2008-09-25T04:29:44.000+0000
API doc fixed with r11517