]> granicus.if.org Git - php/commitdiff
- Added testcase for bug #33563 which is already fixed.
authorDerick Rethans <derick@php.net>
Mon, 4 Jul 2005 12:41:20 +0000 (12:41 +0000)
committerDerick Rethans <derick@php.net>
Mon, 4 Jul 2005 12:41:20 +0000 (12:41 +0000)
ext/date/tests/bug33563.phpt [new file with mode: 0644]

diff --git a/ext/date/tests/bug33563.phpt b/ext/date/tests/bug33563.phpt
new file mode 100644 (file)
index 0000000..b930037
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--
+Bug #33563 (strtotime('+1 month',$abc) cant get right time)
+--FILE--
+<?php
+date_timezone_set("GMT");
+$strCurrDate = date('Y-m-d H:i:s',strtotime('2005-06-30 21:04:23'));
+$strMonAfter = date('Y-m-d H:i:s',strtotime('+1 month',strtotime($strCurrDate)));
+
+echo "strCurrDate:$strCurrDate strMonAfter:$strMonAfter";
+?>
+--EXPECT--
+strCurrDate:2005-06-30 21:04:23 strMonAfter:2005-07-30 21:04:23