Commit Graph

83 Commits

Author SHA1 Message Date
Stanislav Malyshev
9b98cf7865 fix test 2012-05-29 23:52:47 -07:00
Gustavo André dos Santos Lopes
04fd0b1098 Merge branch '5.3' into 5.4 2012-05-24 14:33: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
92039fed22 Changed ResourceBundle constructor behavior
null is now accepted for two first (mandatory arguments).

Passing null as the package name causes NULL to be passed to ICU  and
the default ICU data to be loaded.

Passing null as the locale name causes the default locale to be used.
2012-05-24 13:50:59 +02:00
Gustavo André dos Santos Lopes
e8009e2dca Merge branch '5.3' into 5.4 2012-05-24 11:08:55 +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
0838a2b7c5 Merge branch '5.3' into 5.4 2012-05-23 15:52:32 +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
8ee8ccda19 Merge branch '5.3' into 5.4
Conflicts:
	sapi/fpm/fpm/fpm_main.c
2012-05-23 13:27:21 +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
106e0a2e68 Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3:
  Bug#59597 NumberFormatter::parse() with TYPE_INT64 results in a 32 bit integer
2012-04-19 11:37:31 -07: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
Anatoliy Belsky
105a9a9d45 Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3:
  Fix bug #61448 intl tests fail with icu >= 4.8
2012-03-28 14:01:14 +02:00
Anatoliy Belsky
103995ba22 Fix bug #61448 intl tests fail with icu >= 4.8 2012-03-28 13:59:51 +02:00
Stanislav Malyshev
d51c1e0a4c fix tests 2012-03-25 13:49:19 -07:00
Stanislav Malyshev
2bd5fa0eda Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3:
  fix bug #61487 - bad bounds check in grapheme_strpos
2012-03-25 01:03:25 -07: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
2500b7e5ba 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
Rasmus Lerdorf
fe777cd4db Without a timezone you can't know whether it is dst or not in this one 2012-02-05 10:29:34 +00:00
Gustavo André dos Santos Lopes
5fa1cfbbe6 - Support for UTS #46. 2011-11-24 17:54:50 +00:00
Florian Anderiasch
8343d05e85 Redid the fix for #60192 with suggestions by Pierre and Kalle 2011-11-03 16:20:11 +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
Florian Anderiasch
294c28f885 Fix #60192 SegFault when Collator not constructed properly 2011-11-02 07:36:52 +00:00
Stanislav Malyshev
d81ea16ef1 Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +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
Ferenc Kovacs
a52d3efe08 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
30718d0f14 Added skipif 2011-09-06 09:17:12 +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
Stanislav Malyshev
6e8ebecf0e fix tests 2011-09-05 00:49:03 +00:00
Stanislav Malyshev
40217d0417 fix bug 55562 - make substr always return rest of the string if length is too long 2011-09-04 18:50:05 +00:00
Ilia Alshanetsky
f7cdabd118 More tests 2011-06-01 16:59:23 +00:00
Ilia Alshanetsky
329eae2a7a 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
Ilia Alshanetsky
b8ffccb3ab 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
3440d853c7 implement FR #54540 - Allow loading of arbitrary resource bundles when fallback is disabled 2011-04-17 21:56:26 +00:00
Scott MacVicar
d90394851c Add Spoofchecker to intl extension.
Implements part of Unicode TR36 and TR39
2011-01-13 06:53:09 +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
66f38ebac6 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
Stanislav Malyshev
28584c233e Imlement clone for formatters that support it
# also some test fixes, more to follow
2011-01-03 03:58:57 +00:00