Feature Request #2103

Use a shutdown handler to run system.shutdown

Added by Isaiah DeRose-Wilson over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:09/12/2009
Priority:HighDue date:
Assignee:Isaiah DeRose-Wilson% Done:

0%

Category:Core
Target version:2.4
Resolution:fixed Points:

Description

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.

Associated revisions

Revision 4589
Added by Isaiah DeRose-Wilson over 5 years ago

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

Revision 4590
Added by Isaiah DeRose-Wilson over 5 years ago

Removed Kohana_PHP_Exception::shutdown_handler() from shutdown event when PHP Exceptions are disabled. Refs #2103

Revision 4593
Added by Isaiah DeRose-Wilson over 5 years ago

Removed unneeded variable Kohana_PHP_Exception::$disabled, refs #2103

History

#1 Updated by Isaiah DeRose-Wilson over 5 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF