1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 06:02:23 +02:00
This commit is contained in:
Xinchen Hui
2015-03-04 18:27:18 +08:00

View File

@@ -32,6 +32,8 @@ void php_win32_core_globals_ctor(void *vg)
{
php_win32_core_globals *wg = (php_win32_core_globals*)vg;
memset(wg, 0, sizeof(*wg));
wg->mail_socket = INVALID_SOCKET;
}
void php_win32_core_globals_dtor(void *vg)
@@ -51,6 +53,10 @@ void php_win32_core_globals_dtor(void *vg)
free(wg->registry_directories);
wg->registry_directories = NULL;
}
if (INVALID_SOCKET != wg->mail_socket) {
closesocket(wg->mail_socket);
}
}