Annotation of embedaddon/php/ext/date/tests/bug63391.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test for #63391 (Incorrect/inconsistent day of week prior to the year 1600)
                      3: --FILE--
                      4: <?php
                      5: ini_set('date.timezone', 'UTC');
                      6: 
                      7: print "Date         PHP\n";
                      8: print "----------   ---\n";
                      9: $dates = array('1599-12-30', '1599-12-31', '1600-01-01', '1600-01-02');
                     10: foreach ($dates as $date) {
                     11:        echo date_create($date)->format('Y-m-d   D'), "\n";
                     12: }
                     13: ?>
                     14: --EXPECT--
                     15: Date         PHP
                     16: ----------   ---
                     17: 1599-12-30   Thu
                     18: 1599-12-31   Fri
                     19: 1600-01-01   Sat
                     20: 1600-01-02   Sun

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>