xref: /PHP-7.4/ext/date/tests/bug70153.phpt (revision d2cde0bf)
1--TEST--
2Bug #70153 (\DateInterval incorrectly unserialized)
3--FILE--
4<?php
5$i1 = \DateInterval::createFromDateString('+1 month');
6$i2 = unserialize(serialize($i1));
7var_dump($i1->days, $i2->days);
8var_dump($i2->special_amount, $i2->special_amount);
9?>
10--EXPECT--
11bool(false)
12bool(false)
13int(0)
14int(0)
15