ID:               47470
 User updated by:  mb at smartftp dot com
 Reported By:      mb at smartftp dot com
 Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Windows 2008 64-bit
 PHP Version:      5.2.8
 New Comment:

On Windows time_t is defined as a 64-bit integer. Therefore the valid
range is > 2038.


Previous Comments:
------------------------------------------------------------------------

[2009-02-22 19:03:49] mb at smartftp dot com

Your documentation says otherwise:

Reference: http://ch.php.net/mktime

year 
The number of the year, may be a two or four digit value, with values
between 0-69 mapping to 2000-2069 and 70-100 to 1970-2000. On systems
where time_t is a 32bit signed integer, as most common today, the valid
range for year is somewhere between 1901 and 2038. However, before PHP
5.1.0 this range was limited from 1970 to 2038 on some systems (e.g.
Windows).

------------------------------------------------------------------------

[2009-02-22 18:03:59] der...@php.net

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

.

------------------------------------------------------------------------

[2009-02-22 17:49:21] crrodriguez at opensuse dot org

http://en.wikipedia.org/wiki/Year_2038_problem

------------------------------------------------------------------------

[2009-02-22 02:09:01] mb at smartftp dot com

Description:
------------
mktime fails for dates > 2038.

Reproduce code:
---------------
<?php

if(mktime(0,0,0, 1, 1, 2039) === FALSE)
{
        print "mktime failed";
}
?>

Expected result:
----------------
No output

Actual result:
--------------
mktime failed


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47470&edit=1

Reply via email to