From: Derick Rethans Date: Tue, 2 Dec 2008 18:01:07 +0000 (+0000) Subject: - Fixed bug #46732 (mktime.year description is wrong). X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61f0a0ddd4e151be7846f8471fecdae98fd29134;p=php - Fixed bug #46732 (mktime.year description is wrong). --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index cd708e7185..f02abe725d 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1558,7 +1558,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--