rolland Wed Aug 17 06:26:03 2005 EDT Modified files: /php-src/ext/standard string.c Log: php_u_trim_range(): Alloc UChar32 units rather than UChar http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.459&r2=1.460&ty=u Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.459 php-src/ext/standard/string.c:1.460 --- php-src/ext/standard/string.c:1.459 Wed Aug 17 03:59:28 2005 +++ php-src/ext/standard/string.c Wed Aug 17 06:26:02 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.459 2005/08/17 07:59:28 dmitry Exp $ */ +/* $Id: string.c,v 1.460 2005/08/17 10:26:02 rolland Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -610,7 +610,7 @@ c = input[0]; if ( (input+3 < end) && input[1] == '.' && input[2] == '.' && input[3] >= c ) { tmp_len += (input[3] - c + 1); - tmp = (UChar32 *)erealloc(tmp, tmp_len*sizeof(UChar)); + tmp = (UChar32 *)erealloc(tmp, tmp_len*sizeof(UChar32)); for ( ; c <= input[3] ; c++ ) { if ( U_IS_UNICODE_CHAR(c) ) tmp[idx++] = c; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php