php5.3 incompatimility fix