php5 static fixes