Prevent rename() function cause waring

php5.2 in CGI, rename() function waring return false