Fix PHP warnings.