#36027 [Opn->Bgs]: mktime(0,0,0,0,0,0) not returning FALSE

From: Date: Mon, 16 Jan 2006 06:49:57 +0000
Subject: #36027 [Opn->Bgs]: mktime(0,0,0,0,0,0) not returning FALSE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91979@lists.php.net to get a copy of this message
ID: 36027 Updated by: derick@php.net Reported By: rocco at suqueensland dot org dot au -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Windows XP PHP Version: 5.1.2 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. php -r "echo date('Y-m-d H:i:s', mktime(0,0,0,0,0,0) );" echos: 1999-11-30 00:00:00 Which is correct... Previous Comments: ------------------------------------------------------------------------ [2006-01-16 04:39:52] rocco at suqueensland dot org dot au (forgot to change the summary after i checked the changelog for the return value changing) ------------------------------------------------------------------------ [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

« previous php.bugs (#91979) next »