Commit b59bf565 authored by Dries's avatar Dries

- Patch #870584 by sender: drupal_register_shutdown_function() doxygen is wrong.

parent d1168bf0
...@@ -2969,26 +2969,25 @@ function drupal_placeholder($text) { ...@@ -2969,26 +2969,25 @@ function drupal_placeholder($text) {
} }
/** /**
*
* Register a function for execution on shutdown. * Register a function for execution on shutdown.
* *
* Wrapper for register_shutdown_function() which catches thrown exceptions * Wrapper for register_shutdown_function() that catches thrown exceptions to
* to avoid "Exception thrown without a stack frame in Unknown". * avoid "Exception thrown without a stack frame in Unknown".
* *
* @param $callback * @param $callback
* The shutdown function to register. * The shutdown function to register.
* @param $parameters * @param ...
* It is possible to pass parameters to the shutdown function by passing * Additional arguments to pass to the shutdown function.
* additional parameters. *
* @return * @return
* Array of shutdown functions to be executed. * Array of shutdown functions to be executed.
* *
* @see register_shutdown_function() * @see register_shutdown_function()
* @ingroup php_wrappers * @ingroup php_wrappers
*/ */
function &drupal_register_shutdown_function($callback = NULL, $parameters = NULL) { function &drupal_register_shutdown_function($callback = NULL) {
// We cannot use drupal_static() here because the static cache is reset // We cannot use drupal_static() here because the static cache is reset during
// during batch processing, which breaks batch handling. // batch processing, which breaks batch handling.
static $callbacks = array(); static $callbacks = array();
if (isset($callback)) { if (isset($callback)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment