ID: 37250
Updated by: [EMAIL PROTECTED]
Reported By: wise at alego dot org
-Status: Open
+Status: Bogus
Bug Type: Regexps related
Operating System: Linux 2.6.14-gentoo-r5
PHP Version: 5.1.2
New Comment:
Please report this problem to PCRElib developers.
Not PHP issue.
Previous Comments:
------------------------------------------------------------------------
[2006-04-30 15:33:04] wise at alego dot org
Description:
------------
If regular expresion contains symbols in koi8-r charset,
the modifier is ignored.
Reproduce code:
---------------
$datatext="Привет,
это пример
к слову
'привет'";
echo
preg_replace('/(привет)/i','<b>${1}</b>',$datatext);
Expected result:
----------------
Привет, это
пример к
слову
'<b>привет</b>'
Actual result:
--------------
<b>Привет</b>,
это пример
к слову
'<b>привет</b>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37250&edit=1