fix for support PHP 5.x