add test for fix php warning