ID:               50885
 Updated by:       j...@php.net
 Reported By:      tenz699 at hotmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Scripting Engine problem
 Operating System: FreeBSD 6.4-RELEASE-p8
 PHP Version:      5.2.12
 New Comment:

Is this really what you tried? Since that works just fine. Or did your
script originally contain some unicode chars or something like that? In
latter case it might be good if you provided the script downloadable
somewhere..


Previous Comments:
------------------------------------------------------------------------

[2010-01-30 11:18:38] tenz699 at hotmail dot com

Description:
------------
echo str_ireplace('་','-',
'ས་སི་ང་');

or

echo str_ireplace('x',' ་', 'x - x');


don't work on php 5.2.12, it used to work without any problem on php
5.2.6


Reproduce code:
---------------
<?php
echo str_ireplace('&#3851;','-',
'&#3942;&#3851;&#3942;&#3954;&#3851;&#3908;&#3851;');
echo "\n<br>";
echo str_ireplace('x',' &#3851;', 'x - x');
?>

Expected result:
----------------
&#3942;-&#3942;&#3954;-&#3908;-
 &#3851; -  &#3851;

Actual result:
--------------
-------
 ? - ?


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50885&edit=1

Reply via email to