|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-07 05:47 UTC] EternalEssence at yandex dot ru
-Status: Open
+Status: Closed
[2012-06-07 05:47 UTC] EternalEssence at yandex dot ru
[2012-06-07 05:54 UTC] rasmus@php.net
-Status: Closed
+Status: Not a bug
[2012-06-07 05:54 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 13:00:01 2025 UTC |
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