Doc #55714 [Opn->Asn]: undocumented directive in curl configuration
| From: | aharvey@php.net | Date: | Sat, 24 Sep 2011 20:23:31 +0000 |
| Subject: | Doc #55714 [Opn->Asn]: undocumented directive in curl configuration | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7256@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55714&edit=1
ID: 55714
Updated by: aharvey@php.net
Reported by: perfectirijillo at gmail dot com
Summary: undocumented directive in curl configuration
-Status: Open
+Status: Assigned
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-09-16 21:01:45] perfectirijillo at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=55714&edit=1