xref: /PHP-8.4/ext/date/tests/bug64653.phpt (revision 091c0920)
1--TEST--
2Bug #64653 (Subtraction of DateInterval yields wrong result)
3--FILE--
4<?php
5$date = new \DateTime('2370-01-31');
6echo $date->sub(new \DateInterval('P1M'))->format('Y-m-d');
7?>
8--EXPECT--
92369-12-31
10