Issues

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

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

reopened it, since it's so simple

Already fixed in past