derick          Sat Sep  9 12:26:41 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/date/lib       parse_date.c parse_date.re 
  Log:
  - MFH: 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.29.2.30.2.6&r2=1.29.2.30.2.7&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.6 
php-src/ext/date/lib/parse_date.c:1.29.2.30.2.7
--- php-src/ext/date/lib/parse_date.c:1.29.2.30.2.6     Fri Sep  8 20:22:47 2006
+++ php-src/ext/date/lib/parse_date.c   Sat Sep  9 12:26:22 2006
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.9.12 on Wed Sep  6 09:33:34 2006 */
+/* Generated by re2c 0.9.12 on Sat Sep  9 14:19:46 2006 */
 #line 1 "ext/date/lib/parse_date.re"
 /*
    +----------------------------------------------------------------------+
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: parse_date.c,v 1.29.2.30.2.6 2006/09/08 20:22:47 tony2001 Exp $ */
+/* $Id: parse_date.c,v 1.29.2.30.2.7 2006/09/09 12:26:22 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.26.2.27.2.5&r2=1.26.2.27.2.6&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.5 
php-src/ext/date/lib/parse_date.re:1.26.2.27.2.6
--- php-src/ext/date/lib/parse_date.re:1.26.2.27.2.5    Wed Sep  6 07:34:51 2006
+++ php-src/ext/date/lib/parse_date.re  Sat Sep  9 12:26:33 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: parse_date.re,v 1.26.2.27.2.5 2006/09/06 07:34:51 derick Exp $ */
+/* $Id: parse_date.re,v 1.26.2.27.2.6 2006/09/09 12:26:33 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