Annotation of embedaddon/php/ext/date/tests/bug54597.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #54597 (incorrect years for DateTime objects created with 4-digit years)
! 3: --INI--
! 4: date.timezone=Europe/London
! 5: --FILE--
! 6: <?php
! 7: $tz = new DateTimeZone("Europe/Amsterdam");
! 8: $dateObject = new DateTime( 'January 0099', $tz );
! 9: echo $dateObject->format( 'Y' ), "\n";
! 10: $dateObject = new DateTime( 'January 1, 0099', $tz );
! 11: echo $dateObject->format( 'Y' ), "\n";
! 12: $dateObject = new DateTime( '0099-01', $tz );
! 13: echo $dateObject->format( 'Y' ), "\n";
! 14: ?>
! 15: --EXPECT--
! 16: 0099
! 17: 0099
! 18: 0099
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>