From: Alan Knowles Date: Mon, 28 Nov 2005 10:28:17 +0000 (+0000) Subject: fix bug #35381 - ensure library is initialized before use X-Git-Tag: RELEASE_2_0_2~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9aa88e7e4353a7edcfc8a62723b1e99f3c69f819;p=php fix bug #35381 - ensure library is initialized before use --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index d25ed7f5ee..2d13072082 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -584,6 +584,7 @@ PHP_MINIT_FUNCTION(openssl) le_x509 = zend_register_list_destructors_ex(php_x509_free, NULL, "OpenSSL X.509", module_number); le_csr = zend_register_list_destructors_ex(php_csr_free, NULL, "OpenSSL X.509 CSR", module_number); + SSL_library_init(); OpenSSL_add_all_ciphers(); OpenSSL_add_all_digests(); OpenSSL_add_all_algorithms();