ID:               48327
 Comment by:       wiki345 at gmail dot com
 Reported By:      wiki345 at gmail dot com
 Status:           Feedback
 Bug Type:         PCRE related
 Operating System: Cenos 5.3 X86_64
 PHP Version:      5.2.9
 New Comment:

It's very important for me.
please help me..


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

[2009-05-19 11:43:37] wiki345 at gmail dot com

Both I have tried, but still the same result.

then i install the xampp on the x86_64 system, the same result too.

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

[2009-05-19 10:55:34] j...@php.net

Are you building PHP with the bundled PCRE lib or with external one?


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

[2009-05-19 09:57:58] wiki345 at gmail dot com

you can test preg_match() here:
http://bbs.voc.com.cn/v/preg_test.php

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

[2009-05-19 09:37:13] wiki345 at gmail dot com

Description:
------------
preg_replace,preg_match function.
if pattern was Chinese characters(gb2312),Are not case-sensitive.

I test on Cenos 5.3 i686 is OK.
but on Cenos 5.3 x86_64 is wrong.

ͬÑùµÄÅäÖã¬ÔÚx86_64ΪϵͳÉϾͻá³öÏÖÕâ¸ö´íÎó¡£

ÎÒÔÚCentos x86_64 shellÉϲâÊÔ pcregrep ûÓÐÎÊÌâ¡£
µ«ÊÇͨ¹ý php Ö´ÐоͻáÎÊÌâ.
Èç¹ûpatternÇø·Ö´óСд²»»áÓÐÎÊÌ⣬²»Çø·Ö´óСд¾Í»áÓÐÎÊÌâ¡£

Reproduce code:
---------------
<?
echo preg_replace("/²å/i", "*", "word1:²å, word2:²Å");
?>

Expected result:
----------------
word1:*, word2:²Å

Actual result:
--------------
word1:*, word2:*


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


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

Reply via email to