Fix full text search to be compatible with older PHP versions.