Commit Graph

55 Commits

Author SHA1 Message Date
Xinchen Hui
2b6ac9e1a0 Fix test, wrong exepct rule used 2012-08-02 19:31:34 +08:00
Gustavo André dos Santos Lopes
7e3e1837c8 Limit test to ICU 49 2012-07-30 10:27:41 +02:00
Gustavo André dos Santos Lopes
9762609cec Remove executable bit from files 2012-07-30 10:25:17 +02:00
Gustavo André dos Santos Lopes
45b3fa4dee Fixed tests in ext/intl
21 is not a valid value for UNUM_PADDING_POSITION. Changed the test to
use 2 instead.

Remove ICU 4.2- test. No one cares.
2012-06-05 16:47:00 +02:00
Gustavo André dos Santos Lopes
9b233b7e5e Changed XFAILed collator_get_sort_key.phpt
Ressurected and limited to ICU 4.8 in the hope that the sort keys
will remain stable in more recent ICU versions. I have only tested
with ICU 4.8 so far.
2012-06-04 10:18:24 +02:00
Gustavo André dos Santos Lopes
85c777d2f1 Fixed bug #55610: ResourceBundle and Traversable 2012-05-24 14:33:05 +02:00
Gustavo André dos Santos Lopes
2da2de46a8 Fixed bug #60785
Memory leak in IntlDateFormatter constructor.

udat_setCalendar() clones the calendar before it adopts it,
so we were leaking the original calendar.

Also we now validate the calendar type.
2012-05-24 11:06:21 +02:00
Gustavo André dos Santos Lopes
e08566c613 Fixed bug #62017
IntlDateFormatter constructor would release some resources
under certain error conditions.
2012-05-23 15:52:19 +02:00
Gustavo André dos Santos Lopes
1eff3b01b8 Fixed bug #6208: memory leak in grapheme_extract() 2012-05-23 13:25:45 +02:00
Gustavo André dos Santos Lopes
86ea921291 Fixed bug #62082
This was a buffer overflow in internal function
get_icu_disp_value_src_php().
2012-05-23 13:25:42 +02:00
Gustavo André dos Santos Lopes
07c0d714a5 Fixed bug #62081
Constructor of IntlDateFormatter would leak if called twice.

Made calling it more than once error out before starting
using resources.
2012-05-23 13:25:37 +02:00
Gustavo André dos Santos Lopes
51286bd8e5 Fixed bug #62070
Collator::getSortKey() was returning an unterminated string
due the length given to RETURN_STRINGL being off by one.
2012-05-23 13:25:32 +02:00
Stanislav Malyshev
5cbf2d6785 Merge branch 'pull-request/61' into PHP-5.3
* pull-request/61:
  Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer
2012-04-19 11:28:30 -07:00
Sherif Ramadan
2827324c7c Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer 2012-04-19 04:44:43 -04:00
Anatoliy Belsky
bd928f0592 Fix bug #61448 intl tests fail with icu >= 4.8 2012-03-28 15:07:01 +02:00
Stanislav Malyshev
cd9cd36d7e fix bug #61487 - bad bounds check in grapheme_strpos 2012-03-25 00:56:38 -07:00
Rasmus Lerdorf
d00be8ce0b Same thing here. "June 18, 1969 8:49:59 AM " does not contain a timezone, so there
is no way to know whether dst should be applied or not.
2012-02-05 10:35:56 +00:00
Rasmus Lerdorf
67fe1e2619 Without a timezone you can't know whether it is dst or not in this one 2012-02-05 10:29:34 +00:00
Florian Anderiasch
635e2c28fe Redid the fix for #60192 with suggestions by Pierre and Kalle 2011-11-03 16:20:11 +00:00
Florian Anderiasch
fe5f6f9188 Fix #60192 SegFault when Collator not constructed properly 2011-11-02 07:36:52 +00:00
Ferenc Kovacs
ce68c06ece the TZ environment variable also needed to be set here, didn't dug up why date.timezone isn't sufficient 2011-09-22 22:29:28 +00:00
Xinchen Hui
3901f5abb8 Added skipif 2011-09-06 09:17:12 +00:00
Stanislav Malyshev
cc9483f19e fix tests 2011-09-05 00:49:03 +00:00
Ilia Alshanetsky
f7cdabd118 More tests 2011-06-01 16:59:23 +00:00
Ilia Alshanetsky
e6c9a31c54 Implemented FR #54561 (Expose ICU Version & ICU Data Version info). 2011-06-01 16:26:21 +00:00
Stanislav Malyshev
339f46237d implement FR #54540 - Allow loading of arbitrary resource bundles when fallback is disabled 2011-04-17 21:56:26 +00:00
Stanislav Malyshev
f01a0cba6b fix unit tests for intl in accordance with new ICU releases 2011-01-04 03:24:38 +00:00
Stanislav Malyshev
7d3a0e15f5 Imlement clone for formatters that support it
# also some test fixes, more to follow
2011-01-03 03:58:57 +00:00
Felipe Pena
8b1d477052 - Added test for bug #53512 2010-12-10 00:59:50 +00:00
Stanislav Malyshev
4415b3af51 Add support for DateTime in datefmt_format 2010-11-20 02:09:04 +00:00
Stanislav Malyshev
e6c213b8ea Fix invalid args bugs by Maksymilian Arciemowicz 2010-11-19 23:22:55 +00:00
Gustavo André dos Santos Lopes
8d34fe0d22 - Fixed test for bug #50590 on systems with 64-bit longs. 2010-10-06 17:05:05 +00:00
Stanislav Malyshev
a54ac71371 Fix bug #50590 - IntlDateFormatter::parse result is limited to the integer range 2010-09-01 20:34:59 +00:00
Stanislav Malyshev
28e9a01a3e name resource build script resourcebundle.build 2010-01-11 23:46:43 +00:00
Stanislav Malyshev
8f4337f255 add ICU resource bundle support, contributed by Hans-Peter Oeri 2010-01-04 21:44:45 +00:00
Stanislav Malyshev
882a89fb22 cleanup some code, improve error handling 2009-12-23 21:41:05 +00:00
Stanislav Malyshev
f22ef52836 add test 2009-10-26 22:37:26 +00:00
Stanislav Malyshev
65c1421f3f add collator_get_sort_key() 2009-10-26 22:35:48 +00:00
Antony Dovgal
6d04f1a141 fix test 2009-07-26 19:53:23 +00:00
Stanislav Malyshev
bfdeea808a add test 2009-07-06 23:28:16 +00:00
Stanislav Malyshev
b755935771 cleanup Locale::lookup 2009-07-02 00:43:26 +00:00
Felipe Pena
f306943799 - Fixed bug #48227 (NumberFormatter::format leaks memory) 2009-05-10 20:17:22 +00:00
Kirti Velankar
d21456d602 Fix in grapheme_extract 2009-04-27 18:18:04 +00:00
Stanislav Malyshev
5b8a5d7df4 merge grapheme substr fix 2009-04-10 16:53:35 +00:00
Stanislav Malyshev
54216edfe3 fix bug #14562 2009-01-30 20:56:12 +00:00
Stanislav Malyshev
f77aa102ea fix tests to work both in ICU 3.6 and 3.8 2008-09-08 20:49:10 +00:00
Stanislav Malyshev
29a57b1ddd fix formatter tests for ICU 3.8 2008-09-04 19:59:37 +00:00
Stanislav Malyshev
9bb39338db fix tests 2008-09-04 00:16:58 +00:00
Stanislav Malyshev
0a7c0b37e3 add compose syntax as per request #14266 2008-07-23 19:44:51 +00:00
Stanislav Malyshev
c7e1aefd7f add test 2008-07-23 01:18:25 +00:00