(1 reply) You definitely need to be careful about using relative paths in after the shutdown function has been called, but the current working directory doesn't. (1 reply) If you have to perform cleanup in the current directory, here's a workaround for webservers that change it: ?php function perform_cleanup($oldcwd) chdir. Function Reference. The ASI Authorization and Role Mapper providers use an external server process to evaluate authorization decisions. This process is. PHP tutorial: register-shutdown-function function. Registers a callback to be executed after script execution finishes or exit() is called. ErrorHandler ($client); $error_handler- registerExceptionHandler (); $error_handler- registerErrorHandler (); $error_handler- registerShutdownFunction ();. /*public static*/ function registerShutdownFunction($callable) while(isset(self::$shutdownFunctions[$id = uniqid()])); self::$shutdownFunctions. (0 replies) - Asked: Apr 8 2005 at 22:07 - ([Pear-Doc] Cvs: peardoc /pl/core/pear/pear registershutdownfunction.xml. ) adamg Fri Apr 8 18:07:57 2005 EDT Modified. register_shutdown_function (PHP 4, PHP 5, PHP 7) register_shutdown_function — Register a function for execution on shutdown Fix 5219 Ordering Appoarch of Shutdown Functions 8375. Closed klimov-paul wants to merge 3 commits into yiisoft: master Registers the function named by function to be executed when script processing is complete. Multiple calls to register_shutdown_function() can be made, and each.