PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #41523 strtotime('0000-00-00 00:00:00')
Submitted:28 May 2007 8:51pm UTC Modified: 12 Jul 2007 7:01pm UTC
From:jbeall dot php at heraldic dot us Assigned to:derick
Status:Closed Category:Date/time related
Version:5.2.2 OS:Vista
View/Vote Developer Edit Submission

[28 May 2007 8:51pm 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
[12 Jul 2007 7:01pm 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)

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC