xref: /php-src/ext/date/tests/bug81106.phpt (revision 66ea59e3)
1--TEST--
2Bug #81106: Regression in 8.1: add() now truncate ->f
3--FILE--
4<?php
5$dateInterval = new DateInterval('PT0S');
6$dateInterval->f = 1.234;
7
8echo (new DateTimeImmutable('2000-01-01 00:00:00'))->add($dateInterval)->format('Y-m-d H:i:s.u');
9?>
10--EXPECT--
112000-01-01 00:00:01.234000
12