#30851 [NEW]: Some char cann't be replaced.

From: Date: Sat, 20 Nov 2004 14:57:21 +0000
Subject: #30851 [NEW]: Some char cann't be replaced.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69299@lists.php.net to get a copy of this message
From: ibar at 163 dot com Operating system: RH9 PHP version: 4.3.9 PHP Bug Type: Math related Bug description: Some char cann't be replaced. Description: ------------ When I use the eregi_replace function, I can't replace the traditional chinese letter "4" with the simplified chinese letter "4". But the str_replace function can do. Can you tell me which function can be used to complete it? PS: the tradional chinese letter "4"'s specific character is 0xA57C. But the problem appeared when replaced to the letter "7C" . Reproduce code: --------------- $Strings="i am ¥| ^o^"; print eregi_replace("¥|","4",$Strings); Expected result: ---------------- i am 4 ^o^ Actual result: -------------- Warning: ereg_replace(): REG_EMPTY in /home/site/math.php on line 9 -- Edit bug report at http://bugs.php.net/?id=30851&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30851&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30851&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30851&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30851&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30851&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30851&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30851&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30851&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30851&r=support Expected behavior: http://bugs.php.net/fix.php?id=30851&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30851&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30851&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30851&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30851&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30851&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30851&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30851&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30851&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30851&r=mysqlcfg

« previous php.bugs (#69299) next »