The following script is not outputting error messages to the browser. Instead it results in an HTTP Error 500 response.
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');
phpinfo();
echo "test" asdf // This should error
?>
Ideas? This is a basic php5/apache2 install on ubuntu. httpd.conf is blank, no .htaccess file.
The error.log file displays the error message:
syntax error, unexpected T_STRING, expecting ',' or ';'
which is correct.
Best Answer
If the script has a parse error that prevents it from running, this also prevents it from changing a PHP setting.