Further fixes to PHP warnings

Addresses #330 and further cleans up the PHP log.