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