From: wiki345 at gmail dot com
Operating system: Cenos 5.3 X86_64
PHP version: 5.2.9
PHP Bug Type: PCRE related
Bug description: preg_replace() if pattern was Chinese chart (gb2312),some
thing was wrong!
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 bug report at http://bugs.php.net/?id=48327&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48327&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48327&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48327&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48327&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48327&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48327&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48327&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48327&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48327&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48327&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48327&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48327&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48327&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48327&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48327&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48327&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48327&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48327&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48327&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48327&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48327&r=mysqlcfg