deprecated function in php5.5