|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-17 10:55 UTC] roborg at hotmail dot com
[2013-11-08 00:14 UTC] pierrick@php.net
-Status: Open
+Status: Feedback
[2013-11-08 00:14 UTC] pierrick@php.net
[2013-11-08 08:34 UTC] butesa at freenet dot de
-Status: Feedback
+Status: Open
[2013-11-08 08:34 UTC] butesa at freenet dot de
[2013-11-12 04:16 UTC] pierrick@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: pierrick
[2013-11-12 04:16 UTC] pierrick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 01:00:01 2025 UTC |
Description: ------------ If you add a curl handle to a curl_multi handle and execute it, you can afterwards use curl_error() on the curl handle. But this doesn't work when the SSL certificate doesn't match the servers name. Test script: --------------- <?php $c = curl_init('https://j-matschke.de'); curl_exec($c); var_dump(curl_errno($c)); var_dump(curl_error($c)); echo "\n"; $m = curl_multi_init(); curl_multi_add_handle($m,$c); $running = 1; while ($running == 1) { while (curl_multi_exec($m, $running) == CURLM_CALL_MULTI_PERFORM); while ($done = curl_multi_info_read($m)) { var_dump($done['result']); var_dump(curl_error($done['handle'])); } sleep(1); } Expected result: ---------------- int(51) string(49) "SSL peer certificate or SSH remote key was not OK" int(51) string(49) "SSL peer certificate or SSH remote key was not OK" Actual result: -------------- int(51) string(49) "SSL peer certificate or SSH remote key was not OK" int(51) string(0) ""