fixes for 5.3 php - v.0.2.6