Doc #52938 [NEW]: CURLOPT_CERTINFO not documented, available since 5.3.2

From: Date: Mon, 27 Sep 2010 22:10:12 +0000
Subject: Doc #52938 [NEW]: CURLOPT_CERTINFO not documented, available since 5.3.2
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5133@lists.php.net to get a copy of this message
From: Operating system: Linux/Ubuntu 10.04 PHP version: 5.3.3 Package: Documentation problem Bug Type: Documentation Problem Bug description:CURLOPT_CERTINFO not documented, available since 5.3.2 Description: ------------ I went to http://us.php.net/manual/en/function.curl-setopt.php and did a search for CURLOPT_CERTINFO and did not find anything. Yet I went to http://php.net/ChangeLog-5.php and did a search for CURLOPT_CERTINFO and found the option had been available since 5.3.2. Test script: --------------- <?php if($fp = tmpfile()) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.digicert.com/"); curl_setopt($ch, CURLOPT_STDERR, $fp); curl_setopt($ch, CURLOPT_CERTINFO, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSLVERSION,3); $result = curl_exec($ch); curl_errno($ch)==0 or die("Error:" . curl_errno($ch) . " Message:" . curl_error($ch)); fseek($fp, 0);//rewind $str=''; while(strlen($str.=fread($fp,8192))==8192); echo $str; fclose($fp); } ?> Expected result: ---------------- echo $str; produce the debug output of the certificate, similar to linux command line: openssl x509 -in my_website_com.crt -noout -text I played with it and built some sample code that works. Also, CURLOPT_CERTINFO outputs data to CURLOPT_STDERR. CURLOPT_CERTINFO seems to only work when CURLOPT_VERBOSE is 1. -- Edit bug report at http://bugs.php.net/bug.php?id=52938&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52938&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52938&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52938&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52938&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52938&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52938&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52938&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52938&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52938&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52938&r=support Expected behavior: http://bugs.php.net/fix.php?id=52938&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52938&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52938&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52938&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52938&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52938&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52938&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52938&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52938&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52938&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52938&r=mysqlcfg

« previous php.doc.bugs (#5133) next »