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

Issue Type: Bug Created: 2008-09-25T03:23:01.000+0000 Last Updated: 2008-10-10T14:41:46.000+0000 Status: Resolved Fix version(s): - 1.6.2 (13/Oct/08)

Reporter: Marc Bennewitz (GIATA mbH) (mben) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


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

<pre class="highlight">
Zend_Locale::isLocale("en"); // -> returns true instead of "en"

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

<pre class="highlight">
$localeStr = Zend_Locale::isLocale($locale);
if (!$localeStr) {
   // do anything
} else {
   // use the locale identifier

since revision 10563


Posted by Thomas Weidner (thomas) on 2008-09-25T04:29:44.000+0000

API doc fixed with r11517

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.