tony2001 Sun Apr 22 19:22:19 2007 UTC
Modified files:
/php-src/ext/standard string.c
Log:
fix [l]trim() in unicode mode
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.633&r2=1.634&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.633 php-src/ext/standard/string.c:1.634
--- php-src/ext/standard/string.c:1.633 Mon Mar 26 10:23:49 2007
+++ php-src/ext/standard/string.c Sun Apr 22 19:22:19 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.633 2007/03/26 10:23:49 tony2001 Exp $ */
+/* $Id: string.c,v 1.634 2007/04/22 19:22:19 tony2001 Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -718,6 +718,9 @@
if ( what ) {
what = eustrndup(what, what_len);
php_expand_uchar_range(&what, &what_len TSRMLS_CC);
+ } else {
+ what = USTR_MAKE(" \n\r\t\v\0");
+ what_len = sizeof(" \n\r\t\v\0") - 1;
}
if ( mode & 1 ) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php