i've a problem with my http server (actually Apache 2.4.7 and PHP 5.5.8-2) running on debian. Without enabled display_errors the server returns, as expected a 500-http error, but when enabling display_errors using php.ini or apache vhost directives the server only returns a blank (or whatever output occured until the error) to the client. I'm not able in any way to show the actual occured php error.
Here i've the configuration parts from phpinfo()
error_reporting 0
display_errors On
display_startup_errors On
html_errors On
log_errors On
And here is the actual php file i try to test
<?php
echo "A message before php-error occurs";
foobar1();
echo "A message after error occured";
?>
The second message is not displayed, just as there is no php error output, neither in the http request nor in the error log of the server. HTTP Status Code is 200.
HTTP/1.1 200 OK
Date: Sun, 16 Mar 2014 16:18:36 GMT
Server: Apache/2.4.7 (Debian)
Strict-Transport-Security: max-age=604800
X-Powered-By: PHP/5.5.8-2
Content-Length: 33
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html
A message before php-error occurs
If anyone has an idea what the problem is it would be great if i get a reply. In the moment i've to copy the production platform every time when an error occurs on a local machine to get the php error output.