ID:               35235
 Updated by:       [EMAIL PROTECTED]
 Reported By:      perrick at onpk dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: windows 2000
 PHP Version:      5.1.0RC4
 New Comment:

The old behavior is a bug, the new one is according to our
documentation (http://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, although
this limitation is overcome as of PHP 5.1.0. 


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

[2005-11-16 11:04:12] perrick at onpk dot net

Description:
------------
While running my unit tests, I found a regression bug between version
4.3.11 and 5.1.0RC5-dev in the mktime function.

Reproduce code:
---------------
echo mktime(0, 0, 0, 0, 0, 1990)." -- ".mktime(0, 0, 0, 0, 0, -10);


Expected result:
----------------
I would have tought the result should have been consistent.

Actual result:
--------------
in PHP 4.3.11, the result is :
628383600 -- 628383600

in PHP 5.1.0RC5-dev, the result is :
628383600 -- false



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


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

Reply via email to