]> granicus.if.org Git - php/commitdiff
Fix ZTS build
authorIlia Alshanetsky <iliaa@php.net>
Wed, 11 Dec 2002 02:30:00 +0000 (02:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 11 Dec 2002 02:30:00 +0000 (02:30 +0000)
ext/openssl/openssl.c

index 0033ecdcb694afe17dd44b48cb1a927fca3f7068..58cf13e85427ca193165b807bcac52cf28d721b9 100644 (file)
@@ -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 */