Internal server error on PHP syntax error?

From: 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 [email protected] 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


Thread (7 messages)

« previous php.internals (#57829) next »