Annotation of embedaddon/php/ext/date/tests/bug32555.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #32555 (strtotime("tomorrow") can return false)
! 3: --SKIPIF--
! 4: <?php
! 5: if (substr(PHP_OS, 0, 3) == 'WIN') die('skip strftime uses system TZ');
! 6: ?>
! 7: --INI--
! 8: date.timezone=US/Eastern
! 9: --FILE--
! 10: <?php
! 11: $stamp = 1112427000;
! 12: print strftime('%c %Z',strtotime('now',$stamp)) ."\n";
! 13: print strftime('%c %Z',strtotime('tomorrow',$stamp)) ."\n";
! 14: print strftime('%c %Z',strtotime('+1 day',$stamp)) ."\n";
! 15: print strftime('%c %Z',strtotime('+2 day',$stamp)) ."\n";
! 16: ?>
! 17: --EXPECT--
! 18: Sat Apr 2 02:30:00 2005 EST
! 19: Sun Apr 3 00:00:00 2005 EST
! 20: Sun Apr 3 03:30:00 2005 EDT
! 21: Mon Apr 4 02:30:00 2005 EDT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>