From ceda30930a9b8595cceab0f5142f25ba4fe801b7 Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 10 Dec 2003 14:09:44 +0000 Subject: [PATCH] MFH: Fixed bug #26565 (strtotime("this month") resolving to the wrong month) --- NEWS | 2 ++ ext/standard/parsedate.y | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 5be87c0df1..eb1de29df4 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ PHP 4 NEWS (Jani) - Fixed header handler in NSAPI SAPI module (header->replace was ignored, send_default_content_type now sends value from php.ini). (Uwe Schindler) +- Fixed bug #26565 (strtotime("this month") resolving to the wrong month). + (Jani) - Fixed bug #26564 (ncurses5 has headers in PREFIX/include/ncurses/). (Jani) - Fixed bug #26548 (ext/session: Malformed HTTP dates headers). (Derick) - Fixed bug #26531 (ext/domxml: get_elements_by_tag_name() wildcard fails). diff --git a/ext/standard/parsedate.y b/ext/standard/parsedate.y index 88e8f53c47..9fa8c79c30 100644 --- a/ext/standard/parsedate.y +++ b/ext/standard/parsedate.y @@ -513,7 +513,7 @@ static TABLE const OtherTable[] = { { "today", tDAY_UNIT, 0 }, { "now", tDAY_UNIT, 0 }, { "last", tUNUMBER, -1 }, - { "this", tMINUTE_UNIT, 0 }, + { "this", tUNUMBER, 0 }, { "next", tUNUMBER, 2 }, { "first", tUNUMBER, 1 }, /* { "second", tUNUMBER, 2 }, */ -- 2.50.1