php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jbeall dot php at heraldic dot us
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-12 19:01 UTC] derick@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC