note 120120 added to ref.mbstring
| From: | php at kamiware dot org | Date: | Sat, 05 Nov 2016 10:23:26 +0000 |
| Subject: | note 120120 added to ref.mbstring | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-207016@lists.php.net to get a copy of this message | ||
str_replace is NOT multi-bite safe.
This Ukrainian word gives a bug when used in the next code: вÑдео
$rubishcharacters='[#|\[{}\]´`â ,;.:-\\_<>=*+"\'?()!§$&%';
$searchstring='вÑдео';
$result = str_replace(str_split($rubishcharacters), ' ', $searchstring);
----
Server IP: 72.52.91.14
Probable Submitter: 83.101.80.161
----
Manual Page -- http://php.net/manual/en/ref.mbstring.php
Edit -- https://master.php.net/note/edit/120120
Del: integrated -- https://master.php.net/note/delete/120120/integrated
Del: useless -- https://master.php.net/note/delete/120120/useless
Del: bad code -- https://master.php.net/note/delete/120120/bad+code
Del: spam -- https://master.php.net/note/delete/120120/spam
Del: non-english -- https://master.php.net/note/delete/120120/non-english
Del: in docs -- https://master.php.net/note/delete/120120/in+docs
Del: other reasons-- https://master.php.net/note/delete/120120
Reject -- https://master.php.net/note/reject/120120
Search -- https://master.php.net/manage/user-notes.php