diff options
author | Sammy Kaye Powers <sammyk@php.net> | 2020-11-16 15:13:29 -0800 |
---|---|---|
committer | Sammy Kaye Powers <sammyk@php.net> | 2020-11-16 15:13:29 -0800 |
commit | e974becbb1abef670f5559b93f7841892f4404ce (patch) | |
tree | 2b9b2557ab77dd2717ca08d9151a52653ad1cadf /main | |
parent | 977134352d508464f75904f2bf3e8fac14640d2f (diff) | |
parent | 0425a6697a21327880e36975c733bba2b6a6890a (diff) | |
download | php-git-e974becbb1abef670f5559b93f7841892f4404ce.tar.gz |
Merge branch 'PHP-8.0'
* PHP-8.0:
Fire open observer end handlers after a zend_bailout
Diffstat (limited to 'main')
-rw-r--r-- | main/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c index 26ea0c549e..8ab7c55067 100644 --- a/main/main.c +++ b/main/main.c @@ -1740,6 +1740,11 @@ void php_request_shutdown(void *dummy) php_deactivate_ticks(); + /* 0. Call any open observer end handlers that are still open after a zend_bailout */ + if (ZEND_OBSERVER_ENABLED) { + zend_observer_fcall_end_all(); + } + /* 1. Call all possible shutdown functions registered with register_shutdown_function() */ if (PG(modules_activated)) { php_call_shutdown_functions(); |