[fix] correct php5 warnings