From: Derick Rethans Date: Mon, 30 Aug 2010 16:47:46 +0000 (+0000) Subject: - Added test file that I forgot to commit. X-Git-Tag: php-5.3.4RC1~298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adbf9e766edfec4dcdcafa4c7c0495de61d04670;p=php - Added test file that I forgot to commit. --- diff --git a/ext/date/tests/bug52454.phpt b/ext/date/tests/bug52454.phpt new file mode 100644 index 0000000000..e2a94dc5bc --- /dev/null +++ b/ext/date/tests/bug52454.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #52454 (Relative dates and getTimestamp increments by one day) +--FILE-- +modify('this week +6 days'); + +echo $endOfWeek->format('Y-m-d H:i:s')."\n"; +echo $endOfWeek->format('U')."\n"; + +/* Thar she blows! */ +echo $endOfWeek->getTimestamp()."\n"; + +echo $endOfWeek->format('Y-m-d H:i:s')."\n"; +?> +--EXPECT-- +2010-08-01 09:46:49 +1280652409 +1280652409 +2010-08-01 09:46:49