Improvements to reporting via DocumentParser::phpError()
Improvements to fatal error handling in DocumentParser