Doc #55714 [NEW]: undocumented directive in curl configuration
| From: | perfectirijillo at gmail dot com | Date: | Fri, 16 Sep 2011 21:01:45 +0000 |
| Subject: | Doc #55714 [NEW]: undocumented directive in curl configuration | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7199@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:undocumented directive in curl configuration
Description:
------------
---
From manual page: http://www.php.net/curl.configuration
---
This page makes this claim "This extension has no configuration directives
defined in php.ini.", however looking at the source code I found an
undocumented directive "curl.cainfo" which allowed me to specify a valid
certificate bundle (had problems with zend server CE).
I was trying to hack the curl extension to set CURLOPT_CAINFO but I didn't
have to thanks to this piece of code:
cainfo = INI_STR("curl.cainfo");
if (cainfo && strlen(cainfo) > 0) {
curl_easy_setopt(ch->cp, CURLOPT_CAINFO, cainfo);
}
It might help others if this directive is documented, thank you!
--
Edit bug report at https://bugs.php.net/bug.php?id=55714&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55714&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55714&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55714&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55714&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55714&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55714&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55714&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55714&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55714&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55714&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55714&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55714&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55714&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55714&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55714&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55714&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55714&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55714&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55714&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55714&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55714&r=mysqlcfg