<?php
function shutdown()
{
// This is our shutdown function, in
// here we can do any last operations
// before the script is complete.
echo 'Script executed with success', PHP_EOL;
}
register_shutdown_function('shutdown');
trigger_error("Fatal error", E_USER_ERROR);
Fatal error: Fatal error in /in/Spf2U on line 13
Script executed with success
Process exited with code 255.
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.1
Fatal error: Fatal error in /in/Spf2U on line 13
Script executed with success
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Spf2U on line 9
PHP_EOL Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Fatal error in /in/Spf2U on line 13
Script executed with success
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/Spf2U on line 9
PHP_EOL