php5.3 fixes