[php-src] Issue #11448: DateTime::createFromFormat should parse any number of fractional seconds

From: Date: Tue, 13 Jun 2023 13:46:14 +0000
Subject: [php-src] Issue #11448: DateTime::createFromFormat should parse any number of fractional seconds
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244685@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11448
Author: mvorisek

### Description

repro: https://3v4l.org/GhnO4

new DateTime() can parse (as expected) any number of fractional seconds

but DateTime::createFromFormat can parse only 1-6 digits

I know the php cannot represent more fractionals seconds currently, but fractional seconds are more
or less a floating point and if more digits are present, they should be parsed and discarded.

### PHP Version

any

### Operating System

any


Thread (1 message)

  • mvorisek
« previous php.bugs (#244685) next »