#41523 [Asn->Csd]: strtotime('0000-00-00 00:00:00')
| From: | derick@php.net | Date: | Thu, 12 Jul 2007 19:01:07 +0000 |
| Subject: | #41523 [Asn->Csd]: strtotime('0000-00-00 00:00:00') | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114979@lists.php.net to get a copy of this message | ||
ID: 41523
Updated by: derick@php.net
Reported By: jbeall dot php at heraldic dot us
-Status: Assigned
+Status: Closed
Bug Type: Date/time related
Operating System: Vista
PHP Version: 5.2.2
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
But the expected result is bool(false)
Previous Comments:
------------------------------------------------------------------------
[2007-05-28 20:51:41] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41523&edit=1