#36027 [Opn]: mktime(0,0,0,0,0,0) not returning FALSE
| From: | rocco at suqueensland dot org dot au | Date: | Mon, 16 Jan 2006 03:39:53 +0000 |
| Subject: | #36027 [Opn]: mktime(0,0,0,0,0,0) not returning FALSE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91978@lists.php.net to get a copy of this message | ||
ID: 36027
User updated by: rocco at suqueensland dot org dot au
-Summary: mktime(0,0,0,0,0,0) not returning -1
Reported By: rocco at suqueensland dot org dot au
Status: Open
Bug Type: Date/time related
Operating System: Windows XP
PHP Version: 5.1.2
New Comment:
(forgot to change the summary after i checked the changelog for the
return value changing)
Previous Comments:
------------------------------------------------------------------------
[2006-01-16 04:36:02] rocco at suqueensland dot org dot au
Description:
------------
mktime function returns an incorrect unix timestamp when the arguments
are invalid. The changelog states "Made the function return FALSE on
error, instead of -1."
Reproduce code:
---------------
echo mktime(0,0,0,0,0,0);
Expected result:
----------------
false
Actual result:
--------------
943880400
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36027&edit=1