]> granicus.if.org Git - php/commitdiff
Bug!
authorAndrei Zmievski <andrei@php.net>
Wed, 29 Mar 2006 05:56:06 +0000 (05:56 +0000)
committerAndrei Zmievski <andrei@php.net>
Wed, 29 Mar 2006 05:56:06 +0000 (05:56 +0000)
ext/standard/string.c

index 055b7448044d4da983f902f6a35e97c9fa751c1e..97f81eec0a5311c67459158552379813a3c9100f 100644 (file)
@@ -702,6 +702,10 @@ static UChar *php_u_trim(UChar *c, int len, UChar *what, int what_len, zval *ret
        UChar   ch,wh;
        int32_t start = 0, end = len;
 
+       /*
+        * UTODO
+        * fix trim("a") results in ""
+        */
        if ( what ) {
                what = eustrndup(what, what_len);
                php_expand_u_trim_range(&what, &what_len TSRMLS_CC);