diff options
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c index 84949ccd49..9d4373f12b 100644 --- a/main/main.c +++ b/main/main.c @@ -1190,6 +1190,10 @@ void php_request_shutdown(void *dummy) sapi_send_headers(TSRMLS_C); } zend_end_try(); + zend_try { + zend_call_destructors(TSRMLS_C); + } zend_end_try(); + if (PG(modules_activated)) zend_try { php_call_shutdown_functions(); } zend_end_try(); |