Fix php warnings.