php5.4 compat