#20048 [Opn->]: mktime() returns -1 for dates < 1970

From: Date: Wed, 23 Oct 2002 20:18:40 +0000
Subject: #20048 [Opn->]: mktime() returns -1 for dates < 1970
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23132@lists.php.net to get a copy of this message
ID: 20048 Updated by: hholzgra@php.net Reported By: jamie@hometownsports.ca -Status: Open +Status: Won\'t fix Bug Type: Unknown/Other Function Operating System: RedHat Linux 7.3 PHP Version: 4.2.2 New Comment: unix timestamp behavior for negative values is undefined it *may* map to pre-1970 dates but there is no guarantee whatsoever Previous Comments: ------------------------------------------------------------------------ [2002-10-23 14:26:42] jamie@hometownsports.ca glibc-2.2.5-34 and greater has been changed to return -1 for dates < 1970. This used to work. The problem exists with RedHat 7.3 and 8.0 echo (mktime(0, 0, 0, 1, 1, 1960)); // prints -1 ------------------------------------------------------------------------ [2002-10-23 14:23:48] jamie@hometownsports.ca glibc-2.2.5-34 and greater has been changed to return -1 for dates < 1970. This used to work. The problem exists with RedHat 7.3 and 8.0 echo (mktime(0, 0, 0, 1, 1, 1960)); // prints -1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20048&edit=1

« previous php.bugs (#23132) next »