#19414 [Opn]: mktime causes a crash for certian values.

From: Date: Sun, 15 Sep 2002 10:06:06 +0000
Subject: #19414 [Opn]: mktime causes a crash for certian values.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19389@lists.php.net to get a copy of this message
ID: 19414 User updated by: mike@graftonhall.co.nz Reported By: mike@graftonhall.co.nz Status: Open Bug Type: Date/time related Operating System: Windows 2000 SP2 PHP Version: 4.2.3 New Comment: Actually should probably return -1 as 4.2.4-dev does, as it is out of the range of a long. Previous Comments: ------------------------------------------------------------------------ [2002-09-15 04:54:48] mike@graftonhall.co.nz PHP version: 4.3.0-dev PHP: 20020307 PHP Extension: 20020429 Zend Extension: 20020903 From snaps.php.net Under windows mktime causes php to crash when it's result is greater than (2^32)-1 ie: echo mktime(3,14,7,1,19,2038); outputs 2147436847 ((2^32)-1) on second into the future echo mktime(3,14,8,1,19,2038); crashes. should return 2^32 - Mike :-) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19414&edit=1

« previous php.bugs (#19389) next »