#19414 [Opn->Csd]: mktime causes a crash for certian values.
| From: | iliaa@php.net | Date: | Thu, 19 Sep 2002 18:26:33 +0000 |
| Subject: | #19414 [Opn->Csd]: mktime causes a crash for certian values. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19788@lists.php.net to get a copy of this message | ||
ID: 19414
Updated by: iliaa@php.net
Reported By: mike@graftonhall.co.nz
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: Windows 2000 SP2
PHP Version: 4.2.3
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, 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/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-09-15 05:06:06] mike@graftonhall.co.nz
Actually should probably return -1 as 4.2.4-dev does, as it is out of
the range of a long.
------------------------------------------------------------------------
[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