ID: 48327 Comment by: wiki345 at gmail dot com Reported By: wiki345 at gmail dot com Status: Open Bug Type: PCRE related Operating System: Cenos 5.3 X86_64 PHP Version: 5.2.9 New Comment:
you can test preg_match() here: http://bbs.voc.com.cn/v/preg_test.php Previous Comments: ------------------------------------------------------------------------ [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