mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fix ZTS build
This commit is contained in:
parent
9a24983487
commit
533d3273bd
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user