cvs: php-src /ext/standard string.c
| From: | Andrei Zmievski | Date: | Tue, 18 Apr 2006 02:40:29 +0000 |
| Subject: | cvs: php-src /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37838@lists.php.net to get a copy of this message | ||
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 ) {