xref: /PHP-8.2/ext/date/tests/bug-gh16037.phpt (revision b2b294a2)
1--TEST--
2Test for bug GH-16037: Assertion failure in ext/date/php_date.c
3--FILE--
4<?php
5$di = (new DateInterval('P1Y'))->__unserialize([[]]);
6echo gettype($di);
7?>
8--EXPECT--
9NULL
10