summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-05 17:27:24 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-05 17:27:24 +0000
commitf30dbd9f54df4827bcc4631da968111923d74c79 (patch)
tree580adba50353c983a537aa4b164106be7ebcb62b /ext/date/php_date.c
parent43536d38e68083d0fb2cca7bb3aba02fb725778f (diff)
downloadphp-git-f30dbd9f54df4827bcc4631da968111923d74c79.tar.gz
MFB51: Fixed bug #35558 (mktime() interpreting 3 digit years incorrectly).
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 2d7a1e2271..5a6e9de824 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -967,7 +967,7 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt)
case 6:
if (yea >= 0 && yea < 70) {
yea += 2000;
- } else if (yea >= 70 && yea <= 100) {
+ } else if (yea >= 70 && yea <= 110) {
yea += 1900;
}
now->y = yea;