diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 2 | ||||
-rw-r--r-- | modules/system/system.api.php | 5 | ||||
-rw-r--r-- | modules/system/system.module | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index e21c114ae..190128b4a 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1922,7 +1922,7 @@ function system_run_cron() { */ function system_php() { phpinfo(); - exit(); + drupal_exit(); } /** diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 2826cdbc6..1c5094704 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -259,7 +259,7 @@ function hook_element_info_alter(&$type) { * Perform cleanup tasks. * * This hook is run at the end of each page request. It is often used for - * page logging and printing out debugging information. + * page logging and specialized cleanup. This hook MUST NOT print anything. * * Only use this hook if your code must run even for cached page views. * If you have code which must run once on all non cached pages, use @@ -271,9 +271,6 @@ function hook_element_info_alter(&$type) { * @param $destination * If this hook is invoked as part of a drupal_goto() call, then this argument * will be a fully-qualified URL that is the destination of the redirect. - * Modules may use this to react appropriately; for example, nothing should - * be output in this case, because PHP will then throw a "headers cannot be - * modified" error when attempting the redirection. */ function hook_exit($destination = NULL) { db_update('counter') diff --git a/modules/system/system.module b/modules/system/system.module index 0e932863d..996894419 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2888,7 +2888,7 @@ function system_run_cron_image() { } } - exit; + drupal_exit(); } /** |