I have really simple test cases, with closing tag, extra a
on purpose:
<?php echo 'test'; a?>
And, w/o closing tag, no closing tag on purpose:
<?php echo 'test'; a
When display_errors = On
:
With closing tag => test Notice: Use of undefined constant a - assumed 'a' in test.php on line 3
W/o closing tag => Parse error: syntax error, unexpected $end in test.php on line 3
When display_errors = Off
:
With closing tag => test
W/o closing tag => HTTP 500
Why I get an HTTP 500 error? And why outputs (except error messages) are dependent display_errors option? I thought it only determines if errors will be printed or not. Is this a bug?