[php-src] Issue #7834: date_parse_from_format error when parsing 'Gis' format
| From: | derickr | Date: | Mon, 27 Dec 2021 10:49:36 +0000 |
| Subject: | [php-src] Issue #7834: date_parse_from_format error when parsing 'Gis' format | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238577@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7834
Comment Author: derickr
On 27 December 2021 07:49:06 GMT, Damian Wadley ***@***.***> wrote:
>See https://bugs.php.net/bug.php?id=79685, which I had changed
>to a doc bug but I'll let someone else make that decision here.
>
It should be a doc bug here too. The format parser doesn't backtrack and is greedy, so for the
G it tries to read at most two characters. And then there isn't enough left for i and s.