Php5.5 compatiblity