Page 1 of 1
Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 1:12 pm
by allspiritseve
Ok, I thought this was a SimpleTest bug, but I suspect now its due to my php environment somehow. Basically, if I have a file, and it includes another file, and that file has a syntax error, nothing is displayed. No error, no output from that point on, nothing. As far as I can tell, php.ini error settings are normal. Nothing shows up in the apache error log. It is really <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> me off, and I don't know how to fix it, aside from reinstalling LAMP. Any ideas?
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 1:16 pm
by Eran
Did you check your apache error logs? if the errors are there, it means you need to set up your error reporting / display properly.
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 1:17 pm
by allspiritseve
pytrin wrote:Did you check your apache error logs? if the errors are there, it means you need to set up your error reporting / display properly.
Yes... nothing.
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 1:21 pm
by Eran
I guess reinstalling is your only option. What PHP / Apache version are you using?
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 1:31 pm
by allspiritseve
PHP 5.2.6/ Apache 2.2.9
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 1:36 pm
by Eran
Actually, I once had the problem you are describing with the 2.2.x apache line. Since then I use only the 2.0.x branch (this is for my windows desktop development machine by the way).
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 4:07 pm
by Syntac
For some silly reason, @include, @include_once, @require, and @require_once don't display anything if the target file has errors. Someone needs to fix that.
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 4:17 pm
by allspiritseve
Syntac wrote:For some silly reason, @include, @include_once, @require, and @require_once don't display anything if the target file has errors. Someone needs to fix that.
That's it!! I had @include in my autoload functions. If I remember correctly, I think it's because I set up a couple of folders in the include path, and couldn't find a function that would determine whether the file existed in one of those folders, without parsing the include_path and checking each one individually. I guess I will have to do that. Thanks!
Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 4:21 pm
by Syntac
Hey man, don't mention it.

Re: Bug? Syntax error halts output and doesn't display.
Posted: Thu Jan 08, 2009 4:27 pm
by Eran
nice!
