php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57967 Failed formatter tests
Submitted: 2007-12-13 13:56 UTC Modified: 2008-01-02 18:00 UTC
From: jan at horde dot org Assigned:
Status: Closed Package: intl (PECL)
PHP Version: 5.2.1 OS: SUSE Linux 10.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jan at horde dot org
New email:
PHP Version: OS:

 

 [2007-12-13 13:56 UTC] jan at horde dot org
Description:
------------
tests/formatter_format_currency.diff

003+ ru: 'р. 1 234 567,89'
003- ru: '1 234 567,89р.'

tests/formatter_get_set_symbol.diff

001+ Fatal error: Undefined class constant 'MONETARY_GROUPING_SEPARATOR_SYMBOL'
in /home/jan/cvs/pecl/intl/tests/formatter_get_set_symbol.php on line 28
001- Symbol 'DECIMAL_SEPARATOR_SYMBOL'
002- Default symbol: [.]
003- New symbol: [_._]
004- A number formatted with the new symbol: 12,345_._123
005-
006- Symbol 'GROUPING_SEPARATOR_SYMBOL'
007- Default symbol: [,]
008- New symbol: [_,_]
009- A number formatted with the new symbol: 12_,_345.123
010-
011- Symbol 'PATTERN_SEPARATOR_SYMBOL'
012- Default symbol: [;]
013- New symbol: [_;_]
014- A number formatted with the new symbol: 12,345.123
015-
016- Symbol 'PERCENT_SYMBOL'
017- Default symbol: [%]
018- New symbol: [_%_]
019- A number formatted with the new symbol: 1,234,512_%_
020-
021- Symbol 'ZERO_DIGIT_SYMBOL'
022- Default symbol: [0]
023- New symbol: [_ZD_]
024- A number formatted with the new symbol: `a,bcd.`ab
025-
026- Symbol 'DIGIT_SYMBOL'
027- Default symbol: [#]
028- New symbol: [_DS_]
029- A number formatted with the new symbol: 12,345.123
030-
031- Symbol 'MINUS_SIGN_SYMBOL'
032- Default symbol: [-]
033- New symbol: [_-_]
034- A number formatted with the new symbol: _-_12,345.123
035-
036- Symbol 'PLUS_SIGN_SYMBOL'
037- Default symbol: [+]
038- New symbol: [_+_]
039- A number formatted with the new symbol: 1.2345123456E4
040-
041- Symbol 'CURRENCY_SYMBOL'
042- Default symbol: [$]
043- New symbol: [_$_]
044- A number formatted with the new symbol: _$_12,345.12
045-
046- Symbol 'INTL_CURRENCY_SYMBOL'
047- Default symbol: [USD]
048- New symbol: [_$_]
049- A number formatted with the new symbol: $12,345.12
050-
051- Symbol 'MONETARY_SEPARATOR_SYMBOL'
052- Default symbol: [.]
053- New symbol: [_MS_]
054- A number formatted with the new symbol: $12,345_MS_12
055-
056- Symbol 'EXPONENTIAL_SYMBOL'
057- Default symbol: [E]
058- New symbol: [_E_]
059- A number formatted with the new symbol: 1.2345123456_E_4
060-
061- Symbol 'PERMILL_SYMBOL'
062- Default symbol: [?]
063- New symbol: [_PS_]
064- A number formatted with the new symbol: 12,345.123
065-
066- Symbol 'PAD_ESCAPE_SYMBOL'
067- Default symbol: [*]
068- New symbol: [_PE_]
069- A number formatted with the new symbol: 12,345.123
070-
071- Symbol 'INFINITY_SYMBOL'
072- Default symbol: [∞]
073- New symbol: [_IS_]
074- A number formatted with the new symbol: 12,345.123
075-
076- Symbol 'NAN_SYMBOL'
077- Default symbol: [NaN]
078- New symbol: [_N_]
079- A number formatted with the new symbol: 12,345.123
080-
081- Symbol 'SIGNIFICANT_DIGIT_SYMBOL'
082- Default symbol: [@]
083- New symbol: [_SD_]
084- A number formatted with the new symbol: 12,345.123
085-
086- Symbol 'MONETARY_GROUPING_SEPARATOR_SYMBOL'
087- Default symbol: [,]
088- New symbol: [_MG_]
089- A number formatted with the new symbol: $12_MG_345.12

tests/formatter_parse_currency.diff

002+ 23.45 USD
002- 123.45 USD



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-02 18:00 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.

Probably due to older ICU, should be fixed in CVS - though some tests still might fail due to missing symbols. 
I don't think it's worth investing in having tests remove those symbols...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC