ID: 33770 Updated by: [EMAIL PROTECTED] Reported By: subscription at nazarenko dot net -Status: Assigned +Status: Closed Bug Type: cURL related Operating System: Linux OpenSUSE 10.1 PHP Version: 5CVS-2006-06-26 (snap) Assigned To: iliaa New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-08-24 15:28:03] [EMAIL PROTECTED] Disabling CURLOPT_SSL_VERIFYPEER & CURLOPT_SSL_VERIFYHOST with the patch below fixes it. I believe installing a CA certificate would fix it too. Index: ext/curl/streams.c =================================================================== RCS file: /repository/php-src/ext/curl/streams.c,v retrieving revision 1.14.2.2.2.5 diff -u -p -d -r1.14.2.2.2.5 streams.c --- ext/curl/streams.c 10 Aug 2006 15:02:41 -0000 1.14.2.2.2.5 +++ ext/curl/streams.c 24 Aug 2006 15:26:40 -0000 @@ -291,6 +291,8 @@ php_stream *php_curl_stream_opener(php_s curl_easy_setopt(curlstream->curl, CURLOPT_ERRORBUFFER, curlstream->errstr); curl_easy_setopt(curlstream->curl, CURLOPT_VERBOSE, 0); + curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYPEER, 0); + curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYHOST, 0); /* enable progress notification */ curl_easy_setopt(curlstream->curl, CURLOPT_PROGRESSFUNCTION, on_progress_avail); ------------------------------------------------------------------------ [2006-04-10 12:00:22] [EMAIL PROTECTED] See also bug #36882 ------------------------------------------------------------------------ [2006-01-13 18:32:20] subscription at nazarenko dot net Tried the 200601131530 snapshot. OpenSSL libs: 0.9.7g Curl libs: 7.14.0 Same result. HTTPS works only when --with-curlwrappers is not used. ------------------------------------------------------------------------ [2005-11-10 00:15:48] subscription at nazarenko dot net Here is the result after compiling with --with-curlwrappers: /install/php5-200511091730/sapi/cli/php -i | grep Registered Registered PHP Streams => php, file, ftp, gopher, telnet, dict, ldap, http, https, ftps Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.* /install/php5-200511091730/sapi/cli/php -i | grep fopen allow_url_fopen => On => On ------------------------------------------------------------------------ [2005-11-09 23:59:32] subscription at nazarenko dot net If you mean 'you do have the 64bit versions of those installed?' question, the answer is: Yes, I do. Here is the output of rpm commands: rpm -q --provides openssl-0.9.7g-2.2 ssl libcrypto.so.0.9.7()(64bit) libssl.so.0.9.7()(64bit) openssl = 0.9.7g-2.2 rpm -q --provides curl-7.14.0-2.2 curl_ssl libcurl.so.3()(64bit) curl = 7.14.0-2.2 Also, my 'allow_url_fopen' is On (otherwise no test case would work) I have to stress this fact: absolutely nothing has been changed between the two tests, no php.ini settings, no libraries installed, no system variables, etc. except the "--with-curlwrappers" directive. In once case https works in the other one it does not. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33770 -- Edit this bug report at http://bugs.php.net/?id=33770&edit=1