From b59bf5652be3c31a5c8c7f83a897208011a9ed3a Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sun, 22 Aug 2010 14:11:47 +0000
Subject: [PATCH] - Patch #870584 by sender:
 drupal_register_shutdown_function() doxygen is wrong.

---
 includes/bootstrap.inc | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index c1a2f3151d4b..c41b67bdefbb 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2969,26 +2969,25 @@ function drupal_placeholder($text) {
 }
 
 /**
- *
  * Register a function for execution on shutdown.
  *
- * Wrapper for register_shutdown_function() which catches thrown exceptions
- * to avoid "Exception thrown without a stack frame in Unknown".
+ * Wrapper for register_shutdown_function() that catches thrown exceptions to
+ * avoid "Exception thrown without a stack frame in Unknown".
  *
  * @param $callback
  *   The shutdown function to register.
- * @param $parameters
- *   It is possible to pass parameters to the shutdown function by passing
- *   additional parameters.
+ * @param ...
+ *   Additional arguments to pass to the shutdown function.
+ *
  * @return
  *   Array of shutdown functions to be executed.
  *
  * @see register_shutdown_function()
  * @ingroup php_wrappers
  */
-function &drupal_register_shutdown_function($callback = NULL, $parameters = NULL) {
-  // We cannot use drupal_static() here because the static cache is reset
-  // during batch processing, which breaks batch handling.
+function &drupal_register_shutdown_function($callback = NULL) {
+  // We cannot use drupal_static() here because the static cache is reset during
+  // batch processing, which breaks batch handling.
   static $callbacks = array();
 
   if (isset($callback)) {
-- 
GitLab