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 #4652

problem with en_GB locale

Details

Submitted2005-06-21 16:04 UTC
Frommark at igeek dot co dot uk
Assignedmakler
StatusClosed
PackageNumbers_Words
PHP Version4.3.11
OSLinux
Roadmaps(Not assigned)

Comments

[2005-06-21 16:04 UTC] mark at igeek dot co dot uk

Description:
------------
Using Numbers_Words_0.13.1

Setting en_GB locale, causes the toCurrency method not to
work.

Reproduce code:
---------------
<?php
require_once("Numbers/Words.php");

$nw = new Numbers_Words();

$value = '1234.45';

$words = $nw->toCurrency($value, 'en_GB', 'GBP');

echo "The value (".$value.") is ".$words." in words.<br />";

Expected result:
----------------
I would expect it to work! :-)

Actual result:
--------------
Pear raises an error as soon as it is run:-

Unable to find toCurrencyWords method in 'Numbers_Words_en_GB'
class".

I can obviously work around using 'en_US', but would this
cause me issues with representing numbers?

[2005-09-18 18:53 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.