#50885 [NEW]: srt_replace() function don't work.

From: Date: Sat, 30 Jan 2010 11:18:38 +0000
Subject: #50885 [NEW]: srt_replace() function don't work.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-147062@lists.php.net to get a copy of this message
From: tenz699 at hotmail dot com Operating system: FreeBSD 6.4-RELEASE-p8 PHP version: 5.2.12 PHP Bug Type: Scripting Engine problem Bug description: srt_replace() function don't work. Description: ------------ echo str_ireplace('&#3851;','-', '&#3942;&#3851;&#3942;&#3954;&#3851;&#3908;&#3851;'); or echo str_ireplace('x',' &#3851;', '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 bug report at http://bugs.php.net/?id=50885&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50885&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50885&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50885&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50885&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50885&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50885&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50885&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50885&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50885&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50885&r=support Expected behavior: http://bugs.php.net/fix.php?id=50885&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50885&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50885&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50885&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50885&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50885&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50885&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50885&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50885&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50885&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50885&r=mysqlcfg

« previous php.bugs (#147062) next »