From 8d01aeb4287be61195a43305e34f379086914f5d Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 17 Feb 2010 22:44:52 +0000 Subject: #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. --- includes/lock.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/lock.inc') diff --git a/includes/lock.inc b/includes/lock.inc index 5d03cdd99..3b649a050 100644 --- a/includes/lock.inc +++ b/includes/lock.inc @@ -84,7 +84,7 @@ function _lock_id() { // Assign a unique id. $lock_id = uniqid(mt_rand(), TRUE); // We only register a shutdown function if a lock is used. - register_shutdown_function('lock_release_all', $lock_id); + drupal_register_shutdown_function('lock_release_all', $lock_id); } return $lock_id; } -- cgit v1.2.3