note 101721 deleted from datetime.format by cmb
| From: | cmb@php.net | Date: | Sat, 10 Dec 2016 19:05:22 +0000 |
| Subject: | note 101721 deleted from datetime.format by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208458@lists.php.net to get a copy of this message | ||
Note Submitter: James Meyer
----
A note about version differences - the results of this function differ significantly from php 5.2.x
to 5.3.x .
The 5.2 implementations will often parse to non-sensical values, such as:
1964/11-12: 1964/-99999/-99999
12/11-1964: -99999/12/11
12-31-1964: -99999/-99999/-99999
11121875: 1112/01/187
01321901: 0132/01/190
(this one makes sense, but was a poor guess)
31/12/1964: 1964/01/12
In 5.3+, these all come back as false, as I would expect. 5.2 was just a little optimistic about
it's ability to parse dates, I guess.