From: Derick Rethans Date: Tue, 2 Dec 2008 18:01:58 +0000 (+0000) Subject: - MFH: Fixed bug #46732 (mktime.year description is wrong). X-Git-Tag: php-5.2.8~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24a764e0860be7f28537265ca35012706ba74a9f;p=php - MFH: Fixed bug #46732 (mktime.year description is wrong). --- diff --git a/NEWS b/NEWS index d6c7e48271..0028b85218 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ PHP NEWS reported by Maksymilian Arciemowicz. (Stas) - Fixed bug #46366 (bad cwd with / as pathinfo). (Dmitry) +- Fixed bug #46732 (mktime.year description is wrong). (Derick) 27 Nov 2008, PHP 5.2.7RC5 - Upgraded PCRE to version 7.8 (Fixes CVE-2008-2371) (Ilia) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 8943d24006..f50c0380b3 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1188,7 +1188,7 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt) case 6: if (yea >= 0 && yea < 70) { yea += 2000; - } else if (yea >= 70 && yea <= 110) { + } else if (yea >= 70 && yea <= 100) { yea += 1900; } now->y = yea; diff --git a/ext/date/tests/mktime-3-64bit.phpt b/ext/date/tests/mktime-3-64bit.phpt index bb3fb2df74..a3649cd148 100644 --- a/ext/date/tests/mktime-3-64bit.phpt +++ b/ext/date/tests/mktime-3-64bit.phpt @@ -7,7 +7,7 @@ error_reporting=2047 --FILE--