1--TEST-- 2Bug #79986 (str_ireplace bug with diacritics characters) 3--SKIPIF-- 4<?php 5if (!setlocale(LC_ALL, 'de_DE.ISO-8859-1', 'de-DE')) die('skip German locale not available'); 6?> 7--FILE-- 8<?php 9setlocale(LC_ALL, 'de_DE.ISO-8859-1', 'de-DE'); 10echo str_ireplace(["\xE4", "\xF6", "\xFC"], ['1', '2', '3'], "\xE4\xC4 \xF6\xD6 \xFC\xDC") . PHP_EOL; 11?> 12--EXPECT-- 1311 22 33 14