PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Numbers » Numbers_Words » Bug #7873

Wrong number convertation with Russian locale

Details

Submitted2006-06-12 13:00 UTC
Fromrus331 at mail dot ru
StatusDuplicate
PackageNumbers_Words
PHP Version4.4.2
OSLinux 2.6.14.7
Roadmaps(Not assigned)

Comments

[2006-06-12 13:00 UTC] rus331 at mail dot ru

Description:
------------
When i try to convert "101" to words with russian locale, ive got something like "one hundred ten" - "110". There is no problems with english locale.

Test script:
---------------
<?php
require_once('Numbers/Words.php');
$num = 101;
$ret = Numbers_Words::toWords($num,"ru");
echo $ret;
?>

Expected result:
----------------
sto odin (one hundred one)

Actual result:
--------------
sto desyat' (one hundred ten)

[2006-06-12 13:51 UTC] makler at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Duplicate of bug #6654