From 12bfd9a5f58c12b8f63011c130ec3bf6605ea33b Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 8 Feb 2019 18:10:31 -0800 Subject: Implement FR #77377 handle CTRL+C in Windows --- main/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/main.c') diff --git a/main/main.c b/main/main.c index 3e472bf393..d59633f17a 100644 --- a/main/main.c +++ b/main/main.c @@ -2191,6 +2191,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod php_printf("\nwinsock.dll unusable. %d\n", WSAGetLastError()); return FAILURE; } + php_win32_signal_ctrl_handler_init(); #endif le_index_ptr = zend_register_list_destructors_ex(NULL, NULL, "index pointer", 0); @@ -2478,6 +2479,7 @@ void php_module_shutdown(void) #ifdef PHP_WIN32 (void)php_win32_shutdown_random_bytes(); + php_win32_signal_ctrl_handler_shutdown(); #endif sapi_flush(); -- cgit v1.2.1