1--TEST-- 2Bug #71188 (str_replace converts integers in original $search array to strings) 3--FILE-- 4<?php 5$a = [0, 1, 2]; 6$b = ["Nula", "Jedna", "Dva"]; 7 8var_dump($a); 9str_replace($a, $b, "1"); 10var_dump($a); 11?> 12--EXPECT-- 13array(3) { 14 [0]=> 15 int(0) 16 [1]=> 17 int(1) 18 [2]=> 19 int(2) 20} 21array(3) { 22 [0]=> 23 int(0) 24 [1]=> 25 int(1) 26 [2]=> 27 int(2) 28} 29