#34383 [Opn->Bgs]: gmmktime() and gmdate() are problem with 2038 years
| From: | derick@php.net | Date: | Tue, 06 Sep 2005 05:45:47 +0000 |
| Subject: | #34383 [Opn->Bgs]: gmmktime() and gmdate() are problem with 2038 years | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84566@lists.php.net to get a copy of this message | ||
ID: 34383
Updated by: derick@php.net
Reported By: justin at aofrozencity dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows 2003 Server
PHP Version: 4.4.0
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
PHP only does 32bit signed integers, which run out somewhere in the
year 2038 (not 2028), and then it rolls over to negative numbers -
hence your warning. This won't be changed in PHP 4.4 or 5.0, but is
addressed in 5.1 and higher.
Previous Comments:
------------------------------------------------------------------------
[2005-09-06 03:02:10] justin at aofrozencity dot com
Description:
------------
gmmktime() and gmdate() are problem with 2028+ years
Warning: gmmktime(): Windows does not support negative values for this
function in
e:\vhosts\aofrozencity.net\subdomains\mycrib\httpdocs\calendar_beta.php
on line 7
Warning: gmdate(): Windows does not support dates prior to midnight
(00:00:00), January 1, 1970 in
e:\vhosts\aofrozencity.net\subdomains\mycrib\httpdocs\calendar_beta.php
on line 35
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34383&edit=1