replace deprecated preg_replace with preg_replace_callback in sfTask for PHP5.5 compatibility