The behaviour of this function changed. In older versions a bug existed when using arrays as both search and replace parameters which caused empty search