tested up to 3.8
remove php warning.