: Bug #41523 :: strtotime('0000-00-00 00:00:00')
| Bug #41523 | strtotime('0000-00-00 00:00:00') | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-05-28 20:51 UTC | Modified: | 2007-07-12 19:01 UTC | ||
| From: | jbeall dot php at heraldic dot us | Assigned: | derick (profile) | ||
| Status: | Closed | Package: | Date/time related | ||
| PHP Version: | 5.2.2 | OS: | Vista | ||
| Private report: | No | CVE-ID: | None | ||
[2007-05-28 20:51 UTC] jbeall dot php at heraldic dot us
Description:
------------
strtotime('0000-00-00 00:00:00') should return FALSE, but it instead returns 943905600 (1999-11-30).
This appears to be bug 30190, still alive, even though it was expected to be resolved with PHP5.
Reproduce code:
---------------
echo strtotime('0000-00-00 00:00:00');
Expected result:
----------------
-1
Actual result:
--------------
943905600
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-07-12 19:01 UTC] derick@php.net
[2015-05-25 01:27 UTC] bugs at tmarques dot com
[2015-05-25 01:27 UTC] bugs at tmarques dot com