fix [l]trim() in unicode mode

This commit is contained in:
Antony Dovgal 2007-04-22 19:22:19 +00:00
parent 207e9ddb5f
commit 2f9871787e

View File

@ -718,6 +718,9 @@ static UChar *php_u_trim(UChar *c, int len, UChar *what, int what_len, zval *ret
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 ) {