From b88ef3dc58897c9b5d00c97408687d38b40b8a85 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 1 Jul 2019 19:01:50 +0200 Subject: [PATCH] Remove unused (module|request)_shutdown_for_exec --- main/main.c | 17 ----------------- main/php_main.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/main/main.c b/main/main.c index d276528edb..18d0b43d36 100644 --- a/main/main.c +++ b/main/main.c @@ -1883,18 +1883,6 @@ int php_request_startup(void) } /* }}} */ -/* {{{ php_request_shutdown_for_exec - */ -void php_request_shutdown_for_exec(void *dummy) -{ - - /* used to close fd's in the 3..255 range here, but it's problematic - */ - zend_interned_strings_deactivate(); - shutdown_memory_manager(1, 1); -} -/* }}} */ - /* {{{ php_request_shutdown */ void php_request_shutdown(void *dummy) @@ -2486,11 +2474,6 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod } /* }}} */ -void php_module_shutdown_for_exec(void) -{ - /* used to close fd's in the range 3.255 here, but it's problematic */ -} - /* {{{ php_module_shutdown_wrapper */ int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals) diff --git a/main/php_main.h b/main/php_main.h index 6f2f9c5856..44eeb974d6 100644 --- a/main/php_main.h +++ b/main/php_main.h @@ -27,10 +27,8 @@ BEGIN_EXTERN_C() PHPAPI int php_request_startup(void); PHPAPI void php_request_shutdown(void *dummy); -PHPAPI void php_request_shutdown_for_exec(void *dummy); PHPAPI int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_modules, uint32_t num_additional_modules); PHPAPI void php_module_shutdown(void); -PHPAPI void php_module_shutdown_for_exec(void); PHPAPI int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals); PHPAPI int php_register_extensions(zend_module_entry * const * ptr, int count); -- 2.50.1