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

Reply via email to