iliaa Tue Dec 10 21:30:00 2002 EDT Modified files: /php4/ext/openssl openssl.c Log: Fix ZTS build Index: php4/ext/openssl/openssl.c diff -u php4/ext/openssl/openssl.c:1.53 php4/ext/openssl/openssl.c:1.54 --- php4/ext/openssl/openssl.c:1.53 Tue Dec 10 17:18:57 2002 +++ php4/ext/openssl/openssl.c Tue Dec 10 21:29:59 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.53 2002/12/10 22:18:57 wez Exp $ */ +/* $Id: openssl.c,v 1.54 2002/12/11 02:29:59 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -478,6 +478,8 @@ *egdsocket = 0; *seeded = 0; + TSRMLS_FETCH(); + #ifdef WINDOWS RAND_screen(); #endif @@ -503,6 +505,9 @@ 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 */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php