xref: /PHP-8.3/ext/date/tests/bug76462.phpt (revision 72128294)
1--TEST--
2Bug #76462 Undefined property: DateInterval::$f
3--FILE--
4<?php
5$buggy = new DateInterval('P0Y');
6$buggy->f += 0.01;
7
8$ok = new DateInterval('P0Y');
9$ok->f = $ok->f + 0.01;
10
11var_dump($buggy->f);
12var_dump($ok->f);
13?>
14--EXPECT--
15float(0.01)
16float(0.01)
17