make method erasable work with php5.2