derick          Sat Sep  9 12:25:54 2006 UTC

  Modified files:              
    /php-src/ext/date/lib       parse_date.c parse_date.re 
  Log:
  - The .c file is generated... so updating the .re file and cleaning up WS.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.c?r1=1.68&r2=1.69&diff_format=u
Index: php-src/ext/date/lib/parse_date.c
diff -u php-src/ext/date/lib/parse_date.c:1.68 
php-src/ext/date/lib/parse_date.c:1.69
--- php-src/ext/date/lib/parse_date.c:1.68      Fri Sep  8 20:22:23 2006
+++ php-src/ext/date/lib/parse_date.c   Sat Sep  9 12:25:53 2006
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.9.12 on Wed Sep  6 09:33:00 2006 */
+/* Generated by re2c 0.9.12 on Sat Sep  9 14:24:12 2006 */
 #line 1 "ext/date/lib/parse_date.re"
 /*
    +----------------------------------------------------------------------+
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: parse_date.c,v 1.68 2006/09/08 20:22:23 tony2001 Exp $ */
+/* $Id: parse_date.c,v 1.69 2006/09/09 12:25:53 derick Exp $ */
 
 #include "timelib.h"
 
@@ -22147,8 +22147,8 @@
                while (isspace(*e) && e > s) {
                        e--;
                }
-       }  
-       if (e - s < 1){
+       }
+       if (e - s < 1) {
                in.time = timelib_time_ctor();
                add_error(&in, "Empty string");
                if (errors) {
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.re?r1=1.60&r2=1.61&diff_format=u
Index: php-src/ext/date/lib/parse_date.re
diff -u php-src/ext/date/lib/parse_date.re:1.60 
php-src/ext/date/lib/parse_date.re:1.61
--- php-src/ext/date/lib/parse_date.re:1.60     Wed Sep  6 07:33:59 2006
+++ php-src/ext/date/lib/parse_date.re  Sat Sep  9 12:25:54 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: parse_date.re,v 1.60 2006/09/06 07:33:59 derick Exp $ */
+/* $Id: parse_date.re,v 1.61 2006/09/09 12:25:54 derick Exp $ */
 
 #include "timelib.h"
 
@@ -1522,11 +1522,13 @@
        in.errors->error_count = 0;
        in.errors->error_messages = NULL;
 
-       while (isspace(*s) && s < e) {
-               s++;
-       }
-       while (isspace(*e) && e > s) {
-               e--;
+       if (len > 0) {
+               while (isspace(*s) && s < e) {
+                       s++;
+               }
+               while (isspace(*e) && e > s) {
+                       e--;
+               }
        }
        if (e - s < 1) {
                in.time = timelib_time_ctor();

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

Reply via email to