Fix ZTS build

This commit is contained in:
Ilia Alshanetsky 2002-12-11 02:30:00 +00:00
parent 9a24983487
commit 533d3273bd

View 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 */