summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-08-12 21:00:01 +0800
committerXinchen Hui <laruence@php.net>2012-08-12 21:00:01 +0800
commit253760bb6b73ad39ec1143aad4ecc95ee281dc7b (patch)
treeeb66ecc1cd975d627958a43a45a1f5da893bae7d /ext/standard/basic_functions.c
parent9787e7af44096dec749bcb1f71dbf6e9d75e1de5 (diff)
parentbe818e7ea7a7627ab12faa70d9e70a85c823f738 (diff)
downloadphp-git-253760bb6b73ad39ec1143aad4ecc95ee281dc7b.tar.gz
Merge branch 'PHP-5.4'
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index b97c22c4ff..a2d236c9df 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -5067,8 +5067,11 @@ void php_free_shutdown_functions(TSRMLS_D) /* {{{ */
zend_hash_destroy(BG(user_shutdown_function_names));
FREE_HASHTABLE(BG(user_shutdown_function_names));
BG(user_shutdown_function_names) = NULL;
- }
- zend_end_try();
+ } zend_catch {
+ /* maybe shutdown method call exit, we just ignore it */
+ FREE_HASHTABLE(BG(user_shutdown_function_names));
+ BG(user_shutdown_function_names) = NULL;
+ } zend_end_try();
}
/* }}} */