php/php-src — pull request #226 by krazyest (2012-11-02 09:14:55+00:00)
Title: Update TSRM/tsrm_win32.c

This update fixes the handle leak described here - https://bugs.php.net/bug.php?id=62444

We have to initialize the local thread_token variable to prevent closing some 'random' handle. And at the end of the function we have to use CloseHandle to free the resources we might have obtained, to prevent the leak.