ZF-11752: CLONE - StringTrim works incorrect with UTF-8 strings
Description
Zend/Filter/StringTrim.php: 122
return preg_replace("/$pattern/sSD", '', $value); => return preg_replace("/$pattern/sSDu", '', $value);
u (PCRE8) This modifier turns on additional functionality of PCRE that is incompatible with Perl. Pattern strings are treated as UTF-8.
Comments
Posted by Maxim Postoronca (max4ever) on 2011-09-19T15:21:52.000+0000
i've tested this and with zend 1.11.10 the row is return preg_replace("/$pattern/sSD", '', $value);
chaging it to return preg_replace("/$pattern/sSDu", '', $value);
fixes the problem
Posted by Maxim Postoronca (max4ever) on 2011-09-19T15:26:12.000+0000
reopened it, since it's so simple
Posted by Thomas Weidner (thomas) on 2011-09-25T09:07:22.000+0000
Already fixed in past