Internal server error on PHP syntax error?
| From: | Jakov Sosic | Date: | Mon, 13 Feb 2012 16:50:28 +0000 |
| Subject: | Internal server error on PHP syntax error? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-57829@lists.php.net to get a copy of this message | ||
Hi.
I don't know if this is the right group to ask this kind of question, but if it isn't please excuse my french ;)
As far as I can see, PHP does not report back to Apache error 500 in case of a syntax error in code but displays empty page. For example this code:
<?php foobar();
always returns empty page.
I was curious, so I googled little around and found this old entry from this mailing list:
http://marc.info/?l=php-internals&m=124043575308005
So if that's true, and if I understand it correctly, there is no way for Apache to display error 500 in case of PHP syntax error?
--
Jakov Sosic
www.srce.unizg.hr