xref: /PHP-7.1/ext/date/tests/bug71635.phpt (revision 113213f0)
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