php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55714 undocumented directive in curl configuration
Submitted: 2011-09-16 21:01 UTC Modified: 2011-09-24 20:34 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: perfectirijillo at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: perfectirijillo at gmail dot com
New email:
PHP Version: OS:

 

 [2011-09-16 21:01 UTC] 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!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-24 20:23 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2011-09-24 20:34 UTC] 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-24 20:34 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2011-09-24 20:34 UTC] aharvey@php.net
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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC