I have a situation where an error is causing PHP to return an entirely empty document. I know which functions are causing the errors - it's not the functions themselves but the buggy server they are communicating with. If I comment out the functions, I get a document. If I put them back in the browser tells me "The document contained no data". So PHP is failing completely, returning no data and logging no errors (I have error logging turned on).
Can anybody suggest a way to get any error messages out of PHP?