summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-17 22:44:52 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-17 22:44:52 +0000
commit8d01aeb4287be61195a43305e34f379086914f5d (patch)
tree88ef91e8532ed82085dfa5ce8a854116f891173b /includes/common.inc
parent8847f4c9a2edcd2f555d6a47b5037c88c671cc3c (diff)
downloadbrdo-8d01aeb4287be61195a43305e34f379086914f5d.tar.gz
brdo-8d01aeb4287be61195a43305e34f379086914f5d.tar.bz2
#710142 by Berdir, moshe weitzman, chx: Handle exceptions in shutdown functions (with tests). Hopefully the last of these weird 'Stack frame in Unknown line 0' errors.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index f41982da9..82180255d 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -4017,7 +4017,7 @@ function _drupal_bootstrap_full() {
// Load all enabled modules
module_load_all();
// Register automated cron run handler.
- register_shutdown_function('system_run_automated_cron');
+ drupal_register_shutdown_function('system_run_automated_cron');
// Make sure all stream wrappers are registered.
file_get_stream_wrappers();
if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'simpletest') !== FALSE) {
@@ -4130,7 +4130,7 @@ function drupal_cron_run() {
DrupalQueue::get($queue_name)->createQueue();
}
// Register shutdown callback
- register_shutdown_function('drupal_cron_cleanup');
+ drupal_register_shutdown_function('drupal_cron_cleanup');
// Lock cron semaphore
variable_set('cron_semaphore', REQUEST_TIME);