Doc #55714 [Asn->Csd]: undocumented directive in curl configuration
| From: | aharvey@php.net | Date: | Sat, 24 Sep 2011 20:34:57 +0000 |
| Subject: | Doc #55714 [Asn->Csd]: undocumented directive in curl configuration | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7257@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: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2011-09-24 20:34:50] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=317256
Log: Fix doc bug #55714 (undocumented directive in curl configuration).
------------------------------------------------------------------------
[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