]> granicus.if.org Git - php/commitdiff
- MFH: Fixed a problem with parsing timezones as part of a format.
authorDerick Rethans <derick@php.net>
Mon, 25 Feb 2008 18:28:18 +0000 (18:28 +0000)
committerDerick Rethans <derick@php.net>
Mon, 25 Feb 2008 18:28:18 +0000 (18:28 +0000)
#- It doesn't actually fix anything, but atleast it's consistent with HEAD.

ext/date/lib/parse_date.c
ext/date/lib/parse_date.re

index ef95b1903c6cb6dea45095085f7cacffe8725051..20919cb700241c8dd33e4cd422d335338c2e42de 100644 (file)
@@ -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;
index 72816a955aef3f211287ca3cda3215acd91d0271..732038ef0839019cfc2ff11fae679d910a129201 100644 (file)
@@ -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;