php5 corrections