From: Derick Rethans Date: Tue, 2 Dec 2008 18:02:16 +0000 (+0000) Subject: - MFH: Fixed bug #46732 (mktime.year description is wrong). X-Git-Tag: php-5.3.0alpha2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a28b876e4c7c5d5ba40e34b8616ef6a8e31caf1;p=php - MFH: Fixed bug #46732 (mktime.year description is wrong). --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index e69e0a409b..2cca079a31 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1433,7 +1433,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--