fix call preg_replace_callback in php 5.2