Add debugging to investigate PHP warnings

Change-Id: I8de065376cb6a5cf484fc80b46fc8693b71541de
Merge "Add debugging to investigate PHP warnings"