Fixed preg_replace eval problem in php >= 5.5