Feature Request #2103
Use a shutdown handler to run system.shutdown
|Assignee:||Isaiah DeRose-Wilson||% Done:|
We should register a shutdown handler to run the system.shutdown event, that way it runs even when people use die(), exit() or there is an exception in their code.
1). Register a shutdown handler to run system.shutdown events. Refs #2103
2). Automatically save logs on system shutdown. Fixes #2091
3). Made session library use the system.shutdown event instead of registering it's own shutdown handler. Fatal exceptions now use the system.shutdown event as well.
4). Clean up static inconsistencies. Refs #2088
Removed Kohana_PHP_Exception::shutdown_handler() from shutdown event when PHP Exceptions are disabled. Refs #2103