ID: 14023
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: cURL related
Operating System: linux debian
PHP Version: 4.0CVS-2001-11-12
New Comment:
better re-open this, the fixes below and the ones in CVS do not currently deal with
conflicts between openssl and curl modules - (althought they will fix most common
scenarios)
if curl.so and openssl.so are loaded -using dl() they will both attempt to initialize
openssl.
- It is probably not a common occurance - and as long as there is a bug report then
somebody finding this happening has a chance of knowing what to do.
- workaround - either dont use openssl as a dl module (compile it into php) or dont
user openssl and curl together as modules..
Previous Comments:
------------------------------------------------------------------------
[2001-11-12 20:01:18] [EMAIL PROTECTED]
Patched in CVS (untested)
------------------------------------------------------------------------
[2001-11-12 05:44:12] [EMAIL PROTECTED]
filed under correct type (oops)
------------------------------------------------------------------------
[2001-11-12 04:17:24] [EMAIL PROTECTED]
also probably a good idea to add WIN32 inititialization as well eg.
curl_global_init(CURL_GLOBAL_SSL && CURL_GLOBAL_WIN32)
------------------------------------------------------------------------
[2001-11-12 00:26:30] [EMAIL PROTECTED]
the curl.c file initializes curl with nothing, the curl init library will then skip
the init for ssl, and hence all https connections will fail.
also CURLOPT_SSL_VERIFYHOST is not defined..
patch below..
regards
alan
--- curl.c 18 Oct 2001 19:24:51 -0000 1.94
+++ curl.c 12 Nov 2001 05:25:05 -0000
@@ -142,6 +142,7 @@
REGISTER_CURL_CONSTANT(CURLOPT_SSLCERT);
REGISTER_CURL_CONSTANT(CURLOPT_SSLCERTPASSWD);
REGISTER_CURL_CONSTANT(CURLOPT_WRITEHEADER);
+ REGISTER_CURL_CONSTANT(CURLOPT_SSL_VERIFYHOST);
REGISTER_CURL_CONSTANT(CURLOPT_COOKIEFILE);
REGISTER_CURL_CONSTANT(CURLOPT_SSLVERSION);
REGISTER_CURL_CONSTANT(CURLOPT_TIMECONDITION);
@@ -253,7 +254,7 @@
REGISTER_CURL_CONSTANT(CURLE_OBSOLETE);
REGISTER_CURL_CONSTANT(CURLE_SSL_PEER_CERTIFICATE);
- if (curl_global_init(CURL_GLOBAL_NOTHING) != CURLE_OK) {
+ if (curl_global_init(CURL_GLOBAL_SSL) != CURLE_OK) {
return FAILURE;
}
@@ -658,6 +659,7 @@
case CURLOPT_FRESH_CONNECT:
case CURLOPT_FORBID_REUSE:
case CURLOPT_CONNECTTIMEOUT:
+ case CURLOPT_SSL_VERIFYHOST:
case CURLOPT_SSL_VERIFYPEER:
convert_to_long_ex(zvalue);
error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue));
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14023&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]