produce less php warnings