php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58006 key values garbled in get_keywords
Submitted: 2008-01-11 21:07 UTC Modified: 2008-01-11 21:28 UTC
From: stas at zend dot com Assigned:
Status: Closed Package: intl (PECL)
PHP Version: 5_2 CVS-2008-01-11 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stas at zend dot com
New email:
PHP Version: OS:

 

 [2008-01-11 21:07 UTC] stas at zend dot com
Description:
------------
Key values are not correct in Locale's get_keywords function.

Reproduce code:
---------------
<?php
$keywords_arr = Locale::getKeywords(  'de_DE@currency=EUR;collation=PHONEBOOK;sort=PHONEBOOK'  );
if ($keywords_arr) {
    foreach( $keywords_arr as $key => $value){
        echo "$key = $value\n";
    }
}
?>

Expected result:
----------------
collation = PHONEBOOK
currency = EUR
sort = PHONEBOOK


Actual result:
--------------
collation = PHONEBOOK
currency = EUR
sort = ZZZZZZ


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-11 21:28 UTC] stas at zend dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC