Edit report at https://bugs.php.net/bug.php?id=62248&edit=1
ID: 62248 User updated by: EternalEssence at yandex dot ru Reported by: EternalEssence at yandex dot ru Summary: str_replace() with multiple replacing -Status: Open +Status: Closed Type: Bug Package: Strings related Operating System: Windows 7 / Debian / etc? PHP Version: 5.3.13 Block user comment: N Private report: N New Comment: my mistake Previous Comments: ------------------------------------------------------------------------ [2012-06-07 05:33:37] EternalEssence at yandex dot ru Description: ------------ PHP: 5.3, 5.4 Unicode: not Test script: --------------- // 1. Works (output "<1>") die(str_replace( array('{a1}', '{b1}', '{c1}', '{d1}'), array('a1', '', '1', 'd1'), '{b1} <{c1}>' )); // 2. Error (output nothing) die(str_replace( array('{a1}', '{b1}', '{c1}', '{d1}'), array('a1', '', 'c', 'd1'), '{b1} <{c1}>' )); Expected result: ---------------- <c> Actual result: -------------- nothing ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62248&edit=1