Dealing with php5.1 version limitations.