From 5126ac9ab06152eb49d62031f205dc78d3986768 Mon Sep 17 00:00:00 2001 From: Kai Schroeder Date: Sat, 17 Jul 2010 23:29:52 +0000 Subject: [PATCH] Test for #50475 --- ext/date/tests/bug50475.phpt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ext/date/tests/bug50475.phpt diff --git a/ext/date/tests/bug50475.phpt b/ext/date/tests/bug50475.phpt new file mode 100644 index 00000000000..454e86c6b5a --- /dev/null +++ b/ext/date/tests/bug50475.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #50475 (DateTime::setISODate followed by DateTime::setTime) +--FILE-- +setISODate(2009, 6, 1); + +var_dump($date->format('Y-m-d H:i:s')); + +$date->setTime(8, 0); +var_dump($date->format('Y-m-d H:i:s')); +?> +--EXPECT-- +string(19) "2009-02-02 00:00:00" +string(19) "2009-02-02 08:00:00" \ No newline at end of file