Annotation of embedaddon/php/ext/date/tests/bug33869.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #33869 (strtotime() doesn't parse "+1days" format)
! 3: --FILE--
! 4: <?php
! 5: date_default_timezone_set("UTC");
! 6: $tm = strtotime("2005-01-01 01:01:01");
! 7: echo date(DATE_ISO8601, strtotime('+5days', $tm));
! 8: echo "\n";
! 9: echo date(DATE_ISO8601, strtotime('+1month', $tm));
! 10: echo "\n";
! 11: echo date(DATE_ISO8601, strtotime('+1year', $tm));
! 12: echo "\n";
! 13: echo date(DATE_ISO8601, strtotime('+5 days', $tm));
! 14: echo "\n";
! 15: echo date(DATE_ISO8601, strtotime('+1 month', $tm));
! 16: echo "\n";
! 17: echo date(DATE_ISO8601, strtotime('+1 year', $tm));
! 18: echo "\n";
! 19: ?>
! 20: --EXPECT--
! 21: 2005-01-06T01:01:01+0000
! 22: 2005-02-01T01:01:01+0000
! 23: 2006-01-01T01:01:01+0000
! 24: 2005-01-06T01:01:01+0000
! 25: 2005-02-01T01:01:01+0000
! 26: 2006-01-01T01:01:01+0000
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>