derick          Mon Feb 25 18:28:28 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/date/lib       parse_date.c parse_date.re 
  Log:
  - 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.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.c?r1=1.29.2.30.2.15&r2=1.29.2.30.2.16&diff_format=u
Index: php-src/ext/date/lib/parse_date.c
diff -u php-src/ext/date/lib/parse_date.c:1.29.2.30.2.15 
php-src/ext/date/lib/parse_date.c:1.29.2.30.2.16
--- php-src/ext/date/lib/parse_date.c:1.29.2.30.2.15    Sat Jan 26 16:26:33 2008
+++ php-src/ext/date/lib/parse_date.c   Mon Feb 25 18:28:03 2008
@@ -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"
 /*
    +----------------------------------------------------------------------+
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: parse_date.c,v 1.29.2.30.2.15 2008/01/26 16:26:33 derick Exp $ */
+/* $Id: parse_date.c,v 1.29.2.30.2.16 2008/02/25 18:28:03 derick Exp $ */
 
 #include "timelib.h"
 
@@ -669,7 +669,7 @@
        long  value = 0;
        const timelib_tz_lookup_table *tp;
 
-       while (**ptr != '\0' && **ptr != ')') {
+       while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') {
                ++*ptr;
        }
        end = *ptr;
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.re?r1=1.26.2.27.2.12&r2=1.26.2.27.2.13&diff_format=u
Index: php-src/ext/date/lib/parse_date.re
diff -u php-src/ext/date/lib/parse_date.re:1.26.2.27.2.12 
php-src/ext/date/lib/parse_date.re:1.26.2.27.2.13
--- php-src/ext/date/lib/parse_date.re:1.26.2.27.2.12   Thu Jul 12 18:58:00 2007
+++ php-src/ext/date/lib/parse_date.re  Mon Feb 25 18:28:18 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: parse_date.re,v 1.26.2.27.2.12 2007/07/12 18:58:00 derick Exp $ */
+/* $Id: parse_date.re,v 1.26.2.27.2.13 2008/02/25 18:28:18 derick Exp $ */
 
 #include "timelib.h"
 
@@ -667,7 +667,7 @@
        long  value = 0;
        const timelib_tz_lookup_table *tp;
 
-       while (**ptr != '\0' && **ptr != ')') {
+       while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') {
                ++*ptr;
        }
        end = *ptr;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to