mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Merge branch 'PHP-7.0'
This commit is contained in:
commit
cd6dda1679
3 changed files with 12 additions and 20 deletions
|
@ -5011,16 +5011,9 @@ PHPAPI void php_call_shutdown_functions(void) /* {{{ */
|
|||
{
|
||||
if (BG(user_shutdown_function_names)) {
|
||||
zend_try {
|
||||
zval *entry;
|
||||
for (zend_hash_internal_pointer_reset(BG(user_shutdown_function_names));
|
||||
zend_hash_has_more_elements(BG(user_shutdown_function_names)) == SUCCESS;
|
||||
zend_hash_move_forward(BG(user_shutdown_function_names))) {
|
||||
if ((entry = zend_hash_get_current_data(BG(user_shutdown_function_names))) == NULL) {
|
||||
continue;
|
||||
}
|
||||
user_shutdown_function_call(entry);
|
||||
}
|
||||
} zend_end_try();
|
||||
zend_hash_apply(BG(user_shutdown_function_names), user_shutdown_function_call);
|
||||
}
|
||||
zend_end_try();
|
||||
php_free_shutdown_functions();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue