From: Operating system: Ubuntu 11.04 PHP version: 5.3.6 Package: I18N and L10N related Bug Type: Bug Bug description:\ResourceBundle misses keys
Description: ------------ I currently use the \ResourceBundle class from the intl extension. After an upgrade to 5.3.6 some essental keys were missing. Before i used a ICU4C data library for 3.8.1, after the upgrade i noticed ICU version upgraded too (4.4.1). Using \ResourceBundle with the new data library results in unknown keys, downgrading the data library resolves it. Created the data library at; http://apps.icu-project.org/datacustom/ICUData38.html http://apps.icu-project.org/datacustom/ICUData44.html See also; http://site.icu-project.org/design/resbund/issues Test script: --------------- <?php $res = new \ResourceBundle('en_US', '/usr/data/icu381', true); var_dump($res->get('Languages')); var_dump($res->getErrorMessage()); $res = new \ResourceBundle('en_US', '/usr/data/icu441', true); var_dump($res->get('Languages')); var_dump($res->getErrorMessage()); Expected result: ---------------- object(ResourceBundle) "U_ZERO_ERROR" object(ResourceBundle) "U_ZERO_ERROR" Actual result: -------------- object(ResourceBundle) "U_ZERO_ERROR" NULL "Cannot load resource element 'Languages': U_MISSING_RESOURCE_ERROR" -- Edit bug report at http://bugs.php.net/bug.php?id=55047&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=55047&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=55047&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=55047&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=55047&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=55047&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=55047&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=55047&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=55047&r=needscript Try newer version: http://bugs.php.net/fix.php?id=55047&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=55047&r=support Expected behavior: http://bugs.php.net/fix.php?id=55047&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=55047&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=55047&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=55047&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=55047&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=55047&r=dst IIS Stability: http://bugs.php.net/fix.php?id=55047&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=55047&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=55047&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=55047&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=55047&r=mysqlcfg
