mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
11 lines
281 B
PHP
11 lines
281 B
PHP
--TEST--
|
|
Bug #71635 (segfault in DatePeriod::getEndDate() when no end date has been set)
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set('UTC');
|
|
$period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2);
|
|
|
|
var_dump($period->getEndDate());
|
|
?>
|
|
--EXPECT--
|
|
NULL
|