fix BC with php5.3