Try fixing PHP5.4 error.