From 2841aa95db84f3563c94c90f84bf7f47ba159a2d Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 3 Mar 2015 20:42:28 +0100 Subject: fix thread safety for win32/sendmail --- win32/php_win32_globals.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'win32/php_win32_globals.h') diff --git a/win32/php_win32_globals.h b/win32/php_win32_globals.h index ad2435d99c..b22c227eda 100644 --- a/win32/php_win32_globals.h +++ b/win32/php_win32_globals.h @@ -23,6 +23,8 @@ /* misc globals for thread-safety under win32 */ +#include "win32/sendmail.h" + typedef struct _php_win32_core_globals php_win32_core_globals; #ifdef ZTS @@ -41,6 +43,11 @@ struct _php_win32_core_globals { HKEY registry_key; HANDLE registry_event; HashTable *registry_directories; + + char mail_buffer[MAIL_BUFFER_SIZE]; + SOCKET mail_socket; + char mail_host[HOST_NAME_LEN]; + char mail_local_host[HOST_NAME_LEN]; }; void php_win32_core_globals_ctor(void *vg); -- cgit v1.2.1