Annotation of embedaddon/php/ext/date/tests/bug63435.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #63435 Datetime::format('u') sometimes wrong by 1 microsecond
! 3: --INI--
! 4: date.timezone=UTC
! 5: --FILE--
! 6: <?php
! 7: for ($i=1 ; $i<999 ; $i++) {
! 8: $datetime = Datetime::createFromFormat("u", sprintf("%06ld", $i));
! 9: $res = $datetime->format("u");
! 10: if ($res != $i) {
! 11: echo "$i != $res\n";
! 12: }
! 13: }
! 14: echo "Done";
! 15: --EXPECT--
! 16: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>