[php-src] Issue #7961: strtotime returns non-sense integer given some timestamp string between Jan 17, 2022 and Jan 19, 2022
| From: | cmb69 | Date: | Mon, 17 Jan 2022 21:48:58 +0000 |
| Subject: | [php-src] Issue #7961: strtotime returns non-sense integer given some timestamp string between Jan 17, 2022 and Jan 19, 2022 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239088@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7961
Comment Author: cmb69
strtotime() is super liberal in what it accepts; consider to use
date_parse() instead (and check the error element of the returned array).
But yeah, docs should make that clear.