On a development server here, a setting has been changed which makes any PHP error (of any level) only output the error message and nothing else. To demonstrate what I mean, here's a script to reproduce the error:
<?php
$array = array('a');
echo "Hello world";
echo $array[1];
echo $array[2];
echo "Goodbye world";
?>
What I'd expect from this is "Hello world", then two PHP Notices saying that there was an undefined offset in the array, and then "Goodbye world". What I actually see is this:
PHP Notice: Undefined offset: 1 in /path/to/myfile.php on line 4
PHP Notice: Undefined offset: 2 in /path/to/myfile.php on line 5
...and nothing else. (Also note that it's in plain text like that, not HTML). Of course, I could set error_reporting(0)
, but then I don't see any of the errors.
Does anyone know what PHP setting would control this?