Bug #53996 [NEW]: resourcebundle_locales return locales with null/false/empty string parameter
| From: | jinmoku at hotmail dot com | Date: | Fri, 11 Feb 2011 14:07:56 +0000 |
| Subject: | Bug #53996 [NEW]: resourcebundle_locales return locales with null/false/empty string parameter | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-158710@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.5
Package: I18N and L10N related
Bug Type: Bug
Bug description:resourcebundle_locales return locales with null/false/empty string parameter
Description:
------------
resourcebundle_locales and ResourceBundle::getLocales
returns all locales with null/false/empty string parameter
Test script:
---------------
$r = resourcebundle_locales(''); //or false, null
echo join("\n", $r);
Expected result:
----------------
Warning: resourcebundle_locales(): Cannot fetch locales list in
C:\www\test\index.php on line 3
Warning: join(): Invalid arguments passed in C:\www\test\index.php on line
4
Actual result:
--------------
af
af_ZA
am
am_ET
ar
ar_AE
ar_BH
ar_DZ
ar_EG
ar_IQ
ar_JO
ar_KW
ar_LB
ar_LY
ar_MA
ar_OM
ar_QA
ar_SA
ar_SD
ar_SY
ar_TN
ar_YE
as
as_IN
az
az_Cyrl
az_Cyrl_AZ
az_Latn
az_Latn_AZ
...
--
Edit bug report at http://bugs.php.net/bug.php?id=53996&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53996&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53996&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53996&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53996&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53996&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53996&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53996&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53996&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53996&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53996&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53996&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53996&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53996&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53996&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53996&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53996&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53996&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53996&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53996&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53996&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53996&r=mysqlcfg