[php-src] Issue #9459: DateTime increment with float number produces bad result
| From: | mvorisek | Date: | Wed, 31 Aug 2022 22:49:07 +0000 |
| Subject: | [php-src] Issue #9459: DateTime increment with float number produces bad result | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242348@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9459
Author: mvorisek
### Description
The following code:
https://3v4l.org/CjSDp
Resulted in this output:
+0.5 days is currently the same as +5 days, no
error
But I expected this output instead: I would expect +0.5 seconds allowed, +0.5
months probably as well
### PHP Version
any
### Operating System
any