issue #2433:Modify static function to global function to support some deprecated function