From: Ilia Alshanetsky Date: Wed, 11 Dec 2002 02:30:00 +0000 (+0000) Subject: Fix ZTS build X-Git-Tag: RELEASE_1_0b3~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=533d3273bdb035c551842de14d0d632bc1550da1;p=php Fix ZTS build --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 0033ecdcb6..58cf13e854 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -478,6 +478,8 @@ static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *se *egdsocket = 0; *seeded = 0; + TSRMLS_FETCH(); + #ifdef WINDOWS RAND_screen(); #endif @@ -503,6 +505,9 @@ static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *se static int php_openssl_write_rand_file(const char * file, int egdsocket, int seeded) { char buffer[MAXPATHLEN]; + + TSRMLS_FETCH(); + if (egdsocket || !seeded) { /* if we did not manage to read the seed file, we should not write * a low-entropy seed file back */