If I execute the following script:
<?php
error_reporting(E_ALL);
trigger_error('test notice', E_USER_NOTICE);
die('end of script');
I get the following output:
<br />
<b>Notice</b>: test notice in <b>path/to/script/test.php</b> on line <b>3</b><br />
end of scriptPHP Notice: test notice in path/to/script/test.php on line 3
The script was executed on IIS8 with PHP Version 5.4.19.
The http status code returned is 200.
"display_errors" is set to "On" and "error_reporting" to "E_ALL" in the php.ini file. So the first line of the script is just for clarification.
The behaviour is the same with all error reporting constants (E_ERROR, E_WARNING, etc.).
Does anyone know where the second output of the notice comes from? And especially how the get rid of it?
test.phpon line 3 for the error.error_reporting(E_ALL);.