mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
"Fix" last commit, to compile cURL with SSL support you must also use the
OpenSSL extension -- sorry... The last commit caused bad things to happen if you were compiling cURL and PHP on Win32 or if you compiled PHP --with-openssl, ie, re-initializing things that were already initialized
This commit is contained in:
parent
3ca8006a8d
commit
5fc1552c04
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ PHP_MINIT_FUNCTION(curl)
|
||||||
REGISTER_CURL_CONSTANT(CURLE_OBSOLETE);
|
REGISTER_CURL_CONSTANT(CURLE_OBSOLETE);
|
||||||
REGISTER_CURL_CONSTANT(CURLE_SSL_PEER_CERTIFICATE);
|
REGISTER_CURL_CONSTANT(CURLE_SSL_PEER_CERTIFICATE);
|
||||||
|
|
||||||
if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
|
if (curl_global_init(CURL_GLOBAL_NOTHING) != CURLE_OK) {
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue