Finally I do quick hack for PHP < 5.3.7