]> granicus.if.org Git - php/commitdiff
- MF53: That should have been ||.
authorDerick Rethans <derick@php.net>
Tue, 29 Jan 2008 20:15:44 +0000 (20:15 +0000)
committerDerick Rethans <derick@php.net>
Tue, 29 Jan 2008 20:15:44 +0000 (20:15 +0000)
ext/date/lib/parse_date.c
ext/date/lib/parse_date.re

index 77499a2d64dafcca025c6863f0563f0b6d7aaae3..751d6794e0769020718d5f8f0e53596731fa9148 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.12.1 on Tue Jan 29 21:07:53 2008 */
+/* Generated by re2c 0.12.1 on Tue Jan 29 21:14:49 2008 */
 #line 1 "ext/date/lib/parse_date.re"
 /*
    +----------------------------------------------------------------------+
@@ -757,7 +757,7 @@ static long timelib_get_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_
        while (**ptr == ' ' || **ptr == '\t' || **ptr == '(') {
                ++*ptr;
        }
-       if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' | (*ptr)[3] == '-')) {
+       if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' || (*ptr)[3] == '-')) {
                *ptr += 3;
        }
        if (**ptr == '+') {
index dfd78da569a37a58e0dd7b842d392cd640240308..faff1bbd1779518f0e8c59c077e823126956f58d 100644 (file)
@@ -755,7 +755,7 @@ static long timelib_get_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_
        while (**ptr == ' ' || **ptr == '\t' || **ptr == '(') {
                ++*ptr;
        }
-       if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' | (*ptr)[3] == '-')) {
+       if ((*ptr)[0] == 'G' && (*ptr)[1] == 'M' && (*ptr)[2] == 'T' && ((*ptr)[3] == '+' || (*ptr)[3] == '-')) {
                *ptr += 3;
        }
        if (**ptr == '+') {