Test: /ext/intl/tests/formatter_get_set_attribute.phpt - Version 7.0.15    

There are 3 different diffs reported by users for this test.

Count Diff
4 (44%)
001- Attribute PARSE_INT_ONLY
002- Old attribute value: 0 ; Format result: '12,345.123' ; Parse result: 12345.123
003- Setting attribute: ok
004- New attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345
006- Attribute GROUPING_USED
007- Old attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345.123
008- Setting attribute: ok
009- New attribute value: 0 ; Format result: '12345.123' ; Parse result: 12345.123
010-
011- Attribute DECIMAL_ALWAYS_SHOWN
012- Old attribute value: 0 ; Format result: '12,345' ; Parse result: 12345
013- Setting attribute: ok
014- New attribute value: 1 ; Format result: '12,345.' ; Parse result: 12345
015-
016- Attribute MAX_INTEGER_DIGITS
017- Old attribute value: 309 ; Format result: '12,345.123' ; Parse result: 12345.123
018- Setting attribute: ok
019- New attribute value: 2 ; Format result: '45.123' ; Parse result: 45.123
020-
021- Attribute MIN_INTEGER_DIGITS
022- Old attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345.123
023- Setting attribute: ok
024- New attribute value: 20 ; Format result: '00,000,000,000,000,012,345.123' ; Parse result: 12345.123
025-
026- Attribute INTEGER_DIGITS
027- Old attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345.123
028- Setting attribute: ok
029- New attribute value: 7 ; Format result: '0,012,345.123' ; Parse result: 12345.123
030-
031- Attribute MAX_FRACTION_DIGITS
032- Old attribute value: 3 ; Format result: '0,012,345.123' ; Parse result: 12345.123
033- Setting attribute: ok
034- New attribute value: 2 ; Format result: '0,012,345.12' ; Parse result: 12345.12
035-
036- Attribute MIN_FRACTION_DIGITS
037- Old attribute value: 0 ; Format result: '0,012,345.123' ; Parse result: 12345.123
038- Setting attribute: ok
039- New attribute value: 20 ; Format result: '0,012,345.12345600000000000000' ; Parse result: 12345.123456
040-
041- Attribute FRACTION_DIGITS
042- Old attribute value: 0 ; Format result: '0,012,345.123456' ; Parse result: 12345.123456
043- Setting attribute: ok
044- New attribute value: 5 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
045-
046- Attribute MULTIPLIER
047- Old attribute value: 1 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
048- Setting attribute: ok
049- New attribute value: 2 ; Format result: '0,024,690.24691' ; Parse result: 12345.123455
050-
051- Attribute GROUPING_SIZE
052- Old attribute value: 3 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
053- Setting attribute: ok
054- New attribute value: 2 ; Format result: '0,01,23,45.12346' ; Parse result: 12345.12346
055-
056- Attribute ROUNDING_MODE
057- Old attribute value: 4 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
058- Setting attribute: ok
059- New attribute value: 1 ; Format result: '0,012,345.12345' ; Parse result: 12345.12345
060-
061- Attribute ROUNDING_INCREMENT
062- Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
063- Setting attribute: ok
064- New attribute value: 2 ; Format result: '0,012,346.00000' ; Parse result: 12346
065-
066- Attribute FORMAT_WIDTH
067- Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
068- Setting attribute: ok
069- New attribute value: 27 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
070-
071- Attribute PADDING_POSITION
072- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
073- Setting attribute: ok
074- New attribute value: 2 ; Format result: '0,012,345.12346************' ; Parse result: 12345.12346
075-
076- Attribute SECONDARY_GROUPING_SIZE
077- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
078- Setting attribute: ok
079- New attribute value: 2 ; Format result: '************00,12,345.12346' ; Parse result: 12345.12346
080-
081- Attribute SIGNIFICANT_DIGITS_USED
082- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
083- Setting attribute: ok
084- New attribute value: 1 ; Format result: '*******************12,345.1' ; Parse result: 12345.1
085-
086- Attribute MIN_SIGNIFICANT_DIGITS
087- Old attribute value: 1 ; Format result: '**************************1' ; Parse result: 1
088- Setting attribute: ok
089- New attribute value: 3 ; Format result: '***********************1.00' ; Parse result: 1
090-
091- Attribute MAX_SIGNIFICANT_DIGITS
092- Old attribute value: 6 ; Format result: '*******************12,345.1' ; Parse result: 12345.1
093- Setting attribute: ok
094- New attribute value: 4 ; Format result: '*********************12,350' ; Parse result: 12350
3 (33%)
004+ New attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345.0
004- New attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345
012+ Old attribute value: 0 ; Format result: '12,345' ; Parse result: 12345.0
012- Old attribute value: 0 ; Format result: '12,345' ; Parse result: 12345
014+ New attribute value: 1 ; Format result: '12,345.' ; Parse result: 12345.0
014- New attribute value: 1 ; Format result: '12,345.' ; Parse result: 12345
019+ New attribute value: 2 ; Format result: '45.123' ; Parse result: 45.122999999999998
019- New attribute value: 2 ; Format result: '45.123' ; Parse result: 45.123
034+ New attribute value: 2 ; Format result: '0,012,345.12' ; Parse result: 12345.120000000001
034- New attribute value: 2 ; Format result: '0,012,345.12' ; Parse result: 12345.12
039+ New attribute value: 20 ; Format result: '0,012,345.12345600000000000000' ; Parse result: 12345.123455999999
039- New attribute value: 20 ; Format result: '0,012,345.12345600000000000000' ; Parse result: 12345.123456
042+ Old attribute value: 0 ; Format result: '0,012,345.123456' ; Parse result: 12345.123455999999
042- Old attribute value: 0 ; Format result: '0,012,345.123456' ; Parse result: 12345.123456
044+ New attribute value: 5 ; Format result: '0,012,345.12346' ; Parse result: 12345.123460000001
044- New attribute value: 5 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
047+ Old attribute value: 1 ; Format result: '0,012,345.12346' ; Parse result: 12345.123460000001
047- Old attribute value: 1 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
049+ New attribute value: 2 ; Format result: '0,024,690.24691' ; Parse result: 12345.123455000001
049- New attribute value: 2 ; Format result: '0,024,690.24691' ; Parse result: 12345.123455
052+ Old attribute value: 3 ; Format result: '0,012,345.12346' ; Parse result: 12345.123460000001
052- Old attribute value: 3 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
054+ New attribute value: 2 ; Format result: '0,01,23,45.12346' ; Parse result: 12345.123460000001
054- New attribute value: 2 ; Format result: '0,01,23,45.12346' ; Parse result: 12345.12346
057+ Old attribute value: 4 ; Format result: '0,012,345.12346' ; Parse result: 12345.123460000001
057- Old attribute value: 4 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
059+ New attribute value: 1 ; Format result: '0,012,345.12345' ; Parse result: 12345.123449999999
059- New attribute value: 1 ; Format result: '0,012,345.12345' ; Parse result: 12345.12345
062+ Old attribute value: 0.0 ; Format result: '0,012,345.12346' ; Parse result: 12345.123460000001
062- Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
064+ New attribute value: 2.0 ; Format result: '0,012,346.00000' ; Parse result: 12346.0
064- New attribute value: 2 ; Format result: '0,012,346.00000' ; Parse result: 12346
067+ Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.123460000001
067- Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
069+ New attribute value: 27 ; Format result: '************0,012,345.12346' ; Parse result: 12345.123460000001
069- New attribute value: 27 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
072+ Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.123460000001
072- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
074+ New attribute value: 2 ; Format result: '0,012,345.12346************' ; Parse result: 12345.123460000001
074- New attribute value: 2 ; Format result: '0,012,345.12346************' ; Parse result: 12345.12346
077+ Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.123460000001
077- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
079+ New attribute value: 2 ; Format result: '************00,12,345.12346' ; Parse result: 12345.123460000001
079- New attribute value: 2 ; Format result: '************00,12,345.12346' ; Parse result: 12345.12346
082+ Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.123460000001
082- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
087+ Old attribute value: 1 ; Format result: '**************************1' ; Parse result: 1.0
087- Old attribute value: 1 ; Format result: '**************************1' ; Parse result: 1
089+ New attribute value: 3 ; Format result: '***********************1.00' ; Parse result: 1.0
089- New attribute value: 3 ; Format result: '***********************1.00' ; Parse result: 1
094+ New attribute value: 4 ; Format result: '*********************12,350' ; Parse result: 12350.0
094- New attribute value: 4 ; Format result: '*********************12,350' ; Parse result: 12350
2 (22%)
001+ Termsig=11
001- Attribute PARSE_INT_ONLY
002- Old attribute value: 0 ; Format result: '12,345.123' ; Parse result: 12345.123
003- Setting attribute: ok
004- New attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345
005-
006- Attribute GROUPING_USED
007- Old attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345.123
008- Setting attribute: ok
009- New attribute value: 0 ; Format result: '12345.123' ; Parse result: 12345.123
010-
011- Attribute DECIMAL_ALWAYS_SHOWN
012- Old attribute value: 0 ; Format result: '12,345' ; Parse result: 12345
013- Setting attribute: ok
014- New attribute value: 1 ; Format result: '12,345.' ; Parse result: 12345
015-
016- Attribute MAX_INTEGER_DIGITS
017- Old attribute value: 309 ; Format result: '12,345.123' ; Parse result: 12345.123
018- Setting attribute: ok
019- New attribute value: 2 ; Format result: '45.123' ; Parse result: 45.123
020-
021- Attribute MIN_INTEGER_DIGITS
022- Old attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345.123
023- Setting attribute: ok
024- New attribute value: 20 ; Format result: '00,000,000,000,000,012,345.123' ; Parse result: 12345.123
025-
026- Attribute INTEGER_DIGITS
027- Old attribute value: 1 ; Format result: '12,345.123' ; Parse result: 12345.123
028- Setting attribute: ok
029- New attribute value: 7 ; Format result: '0,012,345.123' ; Parse result: 12345.123
030-
031- Attribute MAX_FRACTION_DIGITS
032- Old attribute value: 3 ; Format result: '0,012,345.123' ; Parse result: 12345.123
033- Setting attribute: ok
034- New attribute value: 2 ; Format result: '0,012,345.12' ; Parse result: 12345.12
035-
036- Attribute MIN_FRACTION_DIGITS
037- Old attribute value: 0 ; Format result: '0,012,345.123' ; Parse result: 12345.123
038- Setting attribute: ok
039- New attribute value: 20 ; Format result: '0,012,345.12345600000000000000' ; Parse result: 12345.123456
040-
041- Attribute FRACTION_DIGITS
042- Old attribute value: 0 ; Format result: '0,012,345.123456' ; Parse result: 12345.123456
043- Setting attribute: ok
044- New attribute value: 5 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
045-
046- Attribute MULTIPLIER
047- Old attribute value: 1 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
048- Setting attribute: ok
049- New attribute value: 2 ; Format result: '0,024,690.24691' ; Parse result: 12345.123455
050-
051- Attribute GROUPING_SIZE
052- Old attribute value: 3 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
053- Setting attribute: ok
054- New attribute value: 2 ; Format result: '0,01,23,45.12346' ; Parse result: 12345.12346
055-
056- Attribute ROUNDING_MODE
057- Old attribute value: 4 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
058- Setting attribute: ok
059- New attribute value: 1 ; Format result: '0,012,345.12345' ; Parse result: 12345.12345
060-
061- Attribute ROUNDING_INCREMENT
062- Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
063- Setting attribute: ok
064- New attribute value: 2 ; Format result: '0,012,346.00000' ; Parse result: 12346
065-
066- Attribute FORMAT_WIDTH
067- Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346
068- Setting attribute: ok
069- New attribute value: 27 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
070-
071- Attribute PADDING_POSITION
072- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
073- Setting attribute: ok
074- New attribute value: 2 ; Format result: '0,012,345.12346************' ; Parse result: 12345.12346
075-
076- Attribute SECONDARY_GROUPING_SIZE
077- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
078- Setting attribute: ok
079- New attribute value: 2 ; Format result: '************00,12,345.12346' ; Parse result: 12345.12346
080-
081- Attribute SIGNIFICANT_DIGITS_USED
082- Old attribute value: 0 ; Format result: '************0,012,345.12346' ; Parse result: 12345.12346
083- Setting attribute: ok
084- New attribute value: 1 ; Format result: '*******************12,345.1' ; Parse result: 12345.1
085-
086- Attribute MIN_SIGNIFICANT_DIGITS
087- Old attribute value: 1 ; Format result: '**************************1' ; Parse result: 1
088- Setting attribute: ok
089- New attribute value: 3 ; Format result: '***********************1.00' ; Parse result: 1
090-
091- Attribute MAX_SIGNIFICANT_DIGITS
092- Old attribute value: 6 ; Format result: '*******************12,345.1' ; Parse result: 12345.1
093- Setting attribute: ok
094- New attribute value: 4 ; Format result: '*********************12,350' ; Parse result: 12350