From: Ilia Alshanetsky Date: Tue, 5 Aug 2003 20:05:17 +0000 (+0000) Subject: MFH: Fixed bug #17414 (pthreads bug workaround). X-Git-Tag: php-4.3.3RC3~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e76a637195ce02499f05f9004b18cdef03f7f0e;p=php MFH: Fixed bug #17414 (pthreads bug workaround). --- diff --git a/NEWS b/NEWS index 6703925301..1aa1de21fa 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,7 @@ PHP 4 NEWS - Fixed bug #22072 (Apache2 sapis do not detect aborted connections). (Ilia) - Fixed bug #21611 (version_compare() does not support "p" as suffix). (Stefan Walk) +- Fixed bug #17414 (pthreads bug workaround). (timo.teras[at]iki.fi) 30 Jul 2003, Version 4.3.3RC2 - Improved the NSAPI SAPI module (Uwe Schindler) diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 7f6ea1f232..c9116222fb 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -181,6 +181,7 @@ TSRM_API void tsrm_shutdown(void) #if defined(GNUPTH) pth_kill(); #elif defined(PTHREADS) + pthread_setspecific(tls_key, 0); pthread_key_delete(tls_key); #elif defined(TSRM_WIN32) TlsFree(tls_key);