make working on php5.3