note 93908 deleted from function.mb-ereg-replace by thiago
| From: | thiago@php.net | Date: | Tue, 06 Oct 2009 14:16:39 +0000 |
| Subject: | note 93908 deleted from function.mb-ereg-replace by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161404@lists.php.net to get a copy of this message | ||
Note Submitter: d-okumura [aat] fi{dot}kyd[dot]co.jp
----
The above-mentioned 'mb_str_ireplace' is very useful,
but the function has a bug.
"Search target" placed on the position 0,
it may guess that mb_strpos returned false.
Modified following:
from:
while(($poz = mb_strpos($wCzymM, $coM, $offset)) !== false)
to:
while(!is_bool($poz = mb_strpos($wCzymM, $coM, $offset)))