Syntax errors in classes fail to generate error messages
Posted: Tue Jul 27, 2010 1:38 am
I have recently encountered a most puzzling problem.
I am working on the development of a CMS for podcasting. The initialisation script of my code switches full error reporting on, for obvious reasons. So whenever I make a silly syntax error, the script tells me about it, with one of php's wonderfully helpful error messages.
But if I make a syntax error inside a class, all I get is a blank screen - no error message. The problem relates only to parse errors - if there is a runtime problem, I get error messages in the normal way. I have adopted the policy of reloading and running the script after every tiny change so that I can quickly identify the problem when I get a blank screen. However, this is tedious, and if anyone has any thoughts on why I am not getting normal error messages and what I can do about it, I would be pleased to know.
I am working on the development of a CMS for podcasting. The initialisation script of my code switches full error reporting on, for obvious reasons. So whenever I make a silly syntax error, the script tells me about it, with one of php's wonderfully helpful error messages.
But if I make a syntax error inside a class, all I get is a blank screen - no error message. The problem relates only to parse errors - if there is a runtime problem, I get error messages in the normal way. I have adopted the policy of reloading and running the script after every tiny change so that I can quickly identify the problem when I get a blank screen. However, this is tedious, and if anyone has any thoughts on why I am not getting normal error messages and what I can do about it, I would be pleased to know.