]> granicus.if.org Git - php/commitdiff
Fixed bug #17414 (pthreads bug work around)
authorIlia Alshanetsky <iliaa@php.net>
Tue, 5 Aug 2003 20:03:54 +0000 (20:03 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 5 Aug 2003 20:03:54 +0000 (20:03 +0000)
Patch by timo.teras[at]iki.fi

TSRM/TSRM.c

index f39114d77048eb516fb3a27e90bd69cd731c58f9..ebb0acbe8f446a460860dc8c9028d555b33f1f76 100644 (file)
@@ -184,6 +184,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);