xref: /PHP-8.2/ext/date/tests/bug71635.phpt (revision d679f022)
1--TEST--
2Bug #71635 (segfault in DatePeriod::getEndDate() when no end date has been set)
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6$period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2);
7
8var_dump($period->getEndDate());
9?>
10--EXPECT--
11NULL
12