]> granicus.if.org Git - php/commit
Improve support for microseconds with Date/Time microseconds
authorDerick Rethans <github@derickrethans.nl>
Wed, 5 Oct 2016 15:24:15 +0000 (11:24 -0400)
committerDerick Rethans <github@derickrethans.nl>
Wed, 5 Oct 2016 19:03:06 +0000 (15:03 -0400)
commit55626549d81d0feadb1d160be78fcf2b898a48cc
treea00c6239804f2ad68ccc3470e63e83eb18f7897f
parentd5b77d66626b138a83b6c0d16f746893fefa29ee
Improve support for microseconds with Date/Time

It fixes several bugs:

- Fixed bug #45554 (Inconsistent behavior of the u format char).
- Fixed bug #48225 (DateTime parser doesn't set microseconds for "now").
- Fixed bug #52514 (microseconds are missing in DateTime class).
- Fixed bug #52519 (microseconds in DateInterval are missing).
- Fixed bug #68506 (General DateTime improvments needed for microseconds to become useful).
- Fixed bug #73109 (timelib_meridian doesn't parse dots correctly).
- Fixed bug #73247 (DateTime constructor does not initialise microseconds property).

It also updates timelib to 2016.04, and updates a data mapping file, which
causes changes to the volatile abbreviations tests.
40 files changed:
NEWS
ext/date/config.w32
ext/date/lib/interval.c
ext/date/lib/parse_date.c
ext/date/lib/parse_date.re
ext/date/lib/timelib.c
ext/date/lib/timelib.h
ext/date/lib/timelib.m4
ext/date/lib/timelib_structs.h
ext/date/lib/timezonemap.h
ext/date/lib/tm2unixtime.c
ext/date/lib/unixtime2tm.c
ext/date/php_date.c
ext/date/tests/010.phpt
ext/date/tests/DateTimeZone_getLocation.phpt
ext/date/tests/DateTimeZone_listAbbreviations_basic1.phpt
ext/date/tests/DateTime_setTime_error.phpt
ext/date/tests/bug45682.phpt
ext/date/tests/bug48678.phpt
ext/date/tests/bug49081.phpt
ext/date/tests/bug49778.phpt
ext/date/tests/bug52113.phpt
ext/date/tests/bug52738.phpt
ext/date/tests/bug52808.phpt
ext/date/tests/bug53437.phpt
ext/date/tests/bug53437_var2.phpt
ext/date/tests/bug53437_var4.phpt
ext/date/tests/bug53437_var5.phpt
ext/date/tests/bug53437_var6.phpt [new file with mode: 0644]
ext/date/tests/bug60774.phpt
ext/date/tests/date_diff1.phpt
ext/date/tests/date_interval_create_from_date_string_nullparam.phpt
ext/date/tests/date_interval_create_from_date_string_wrongparam_002.phpt
ext/date/tests/date_time_fractions.phpt [new file with mode: 0644]
ext/date/tests/date_time_fractions_create_from_format.phpt [new file with mode: 0644]
ext/date/tests/date_time_fractions_serialize.phpt [new file with mode: 0644]
ext/date/tests/date_time_set_error.phpt
ext/date/tests/timezone_abbreviations_list_basic1.phpt
ext/date/tests/timezone_name_from_abbr_basic1.phpt
ext/spl/tests/bug70155.phpt