From: Derick Rethans Date: Mon, 25 Feb 2008 18:28:18 +0000 (+0000) Subject: - MFH: Fixed a problem with parsing timezones as part of a format. X-Git-Tag: php-5.2.6RC1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08e237cc6db931ffd727f3257085d8f54410a458;p=php - MFH: Fixed a problem with parsing timezones as part of a format. #- It doesn't actually fix anything, but atleast it's consistent with HEAD. --- diff --git a/ext/date/lib/parse_date.c b/ext/date/lib/parse_date.c index ef95b1903c..20919cb700 100644 --- a/ext/date/lib/parse_date.c +++ b/ext/date/lib/parse_date.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.12.1 on Sat Jan 26 16:10:48 2008 */ +/* Generated by re2c 0.12.1 on Mon Feb 25 19:27:05 2008 */ #line 1 "ext/date/lib/parse_date.re" /* +----------------------------------------------------------------------+ @@ -669,7 +669,7 @@ static long timelib_lookup_zone(char **ptr, int *dst, char **tz_abbr, int *found long value = 0; const timelib_tz_lookup_table *tp; - while (**ptr != '\0' && **ptr != ')') { + while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') { ++*ptr; } end = *ptr; diff --git a/ext/date/lib/parse_date.re b/ext/date/lib/parse_date.re index 72816a955a..732038ef08 100644 --- a/ext/date/lib/parse_date.re +++ b/ext/date/lib/parse_date.re @@ -667,7 +667,7 @@ static long timelib_lookup_zone(char **ptr, int *dst, char **tz_abbr, int *found long value = 0; const timelib_tz_lookup_table *tp; - while (**ptr != '\0' && **ptr != ')') { + while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') { ++*ptr; } end = *ptr;