andrei          Tue Apr 18 02:40:29 2006 UTC

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  Fix trim("a") bug.
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.538&r2=1.539&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.538 php-src/ext/standard/string.c:1.539
--- php-src/ext/standard/string.c:1.538 Mon Apr  3 09:14:50 2006
+++ php-src/ext/standard/string.c       Tue Apr 18 02:40:29 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.538 2006/04/03 09:14:50 tony2001 Exp $ */
+/* $Id: string.c,v 1.539 2006/04/18 02:40:29 andrei Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -724,9 +724,7 @@
                                if ( u_isWhitespace(ch) == FALSE ) break;
                        }
                }
-               if ( i < end ) {
-                       U16_BACK_1(c, 0, i); /* U16_NEXT() post-increments 'i' 
*/
-               }
+               U16_BACK_1(c, 0, i); /* U16_NEXT() post-increments 'i' */
                start = i;
        }
        if ( mode & 2 ) {

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

Reply via email to