From: butesa at freenet dot de Operating system: Ubuntu 12.04 x64 PHP version: 5.5.3 Package: cURL related Bug Type: Bug Bug description:No error message on wrong SSL certificate with curl_multi
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) "" -- Edit bug report at https://bugs.php.net/bug.php?id=65684&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65684&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65684&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65684&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65684&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65684&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65684&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65684&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65684&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65684&r=support Expected behavior: https://bugs.php.net/fix.php?id=65684&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65684&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65684&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65684&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65684&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65684&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65684&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65684&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65684&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65684&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65684&r=mysqlcfg