reduce php warnings when compile