From d69ab24f69447fbba2cf81b5142169b40ac8811e Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 28 Nov 2005 11:37:43 +0000 Subject: [PATCH] MFH: - Fixed bug #35381 (ssl library is not initialized properly) --- NEWS | 1 + ext/openssl/openssl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index 78eaa598d27..17d3c2544b9 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ PHP NEWS - Fixed bug #35430 (PDO crashes on incorrect FETCH_FUNC use). (Tony) - Fixed bug #35399 (Since fix of bug #35273 SOAP decoding of soapenc:base64binary fails). (Dmitry) +- Fixed bug #35381 (ssl library is not initialized properly). (Alan) 28 Nov 2005, PHP 5.1.1 - Disabled native date class to prevent pear::date conflict. (Ilia) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index d25ed7f5ee2..2d13072082b 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();