PHP warnings and fixes.