1--TEST-- 2Bug #53823 - preg_replace: * qualifier on unicode replace garbles the string 3--FILE-- 4<?php 5var_dump(preg_replace('/[^\pL\pM]*/iu', '', 'áéíóú')); 6// invalid UTF-8 7var_dump(preg_replace('/[^\pL\pM]*/iu', '', "\xFCáéíóú")); 8var_dump(preg_replace('/[^\pL\pM]*/iu', '', "áéíóú\xFC")); 9?> 10--EXPECT-- 11string(10) "áéíóú" 12NULL 13NULL 14