]> granicus.if.org Git - php/commit
Make DateTime and DateTimeImmutable siblings.
authorDerick Rethans <github@derickrethans.nl>
Sun, 31 Mar 2013 09:37:16 +0000 (10:37 +0100)
committerDerick Rethans <github@derickrethans.nl>
Sun, 31 Mar 2013 09:37:16 +0000 (10:37 +0100)
commit68a7fec7af2c8976820ae06063a112db6da82605
treec6317dbb711fe6f7ab36b62172a84b74c7bd06d6
parent0e25e00ecf74bcc1a9e14eac25bd7d7cc4857c24
Make DateTime and DateTimeImmutable siblings.

They both implement the DateTimeInterface interface, which specifies the
non-modifying methods of DateTime/DateTimeImmutable.
ext/date/php_date.c
ext/date/tests/DatePeriod_wrong_constructor.phpt
ext/date/tests/date_format_error.phpt
ext/date/tests/date_format_variation1.phpt
ext/date/tests/date_offset_get_error.phpt
ext/date/tests/date_offset_get_variation1.phpt
ext/date/tests/date_timestamp_get.phpt
ext/date/tests/date_timezone_get_error.phpt
ext/date/tests/date_timezone_get_variation1.phpt