fix php warnings for php56