PHP :: Bug #35499 :: strtotime with newline fails
| Bug #35499 | strtotime with newline fails | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2005-12-01 01:22 UTC | Modified: | 2005-12-01 17:26 UTC |
|
||||||||||
| From: | stabthecat at hotmail dot com | Assigned: | iliaa (profile) | |||||||||||
| Status: | Closed | Package: | Date/time related | |||||||||||
| PHP Version: | 5.1.1 | OS: | Windows / Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2005-12-01 01:22 UTC] stabthecat at hotmail dot com
Description:
------------
Since version 5.1
strtotime("11/20/2005 8:00 AM\r\n");
fails, and returns null
strtotime(trim("11/20/2005 8:00 AM\r\n"));
fixes it
Reproduce code:
---------------
print(strtotime("11/20/2005 8:00 AM\r\n"));
Expected result:
----------------
1132488000
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-12-01 17:26 UTC] iliaa@php.net