static php5 fixes