summaryrefslogtreecommitdiff
path: root/includes/database
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/database
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/database')
-rw-r--r--includes/database/mysql/database.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database/mysql/database.inc b/includes/database/mysql/database.inc
index 39ba59e4b..46acb4dda 100644
--- a/includes/database/mysql/database.inc
+++ b/includes/database/mysql/database.inc
@@ -85,7 +85,7 @@ class DatabaseConnection_mysql extends DatabaseConnection {
$new_id = $this->query('INSERT INTO {sequences} () VALUES ()', array(), array('return' => Database::RETURN_INSERT_ID));
}
if (!$shutdown_registered) {
- register_shutdown_function(array(get_class($this), 'nextIdDelete'));
+ drupal_register_shutdown_function(array(get_class($this), 'nextIdDelete'));
$shutdown_registered = TRUE;
}
return $new_id;