php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70196 curl_setopt for CURLOPT_CAINFO does NOT require an absolute path
Submitted: 2015-08-05 19:40 UTC Modified: 2015-08-27 17:56 UTC
From: beanland2 at gmail dot com Assigned: cmb (profile)
Status: Closed Package: cURL related
PHP Version: 5.5.27 OS: Ubuntu 14.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 + 19 = ?
Subscribe to this entry?

 
 [2015-08-05 19:40 UTC] beanland2 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.curl-setopt
---

The command below works perfectly fine on my system, but the documentation says the CURLOPT_CAINFO requires an absolute URL

curl_setopt($ch, CURLOPT_CAINFO, '../../cert.pem');


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-27 17:53 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2015-08-27 17:53 UTC] cmb@php.net
The note that an absolute path is required has been added as fix
for bug #53781, so a relative may or may not work.
 [2015-08-27 17:56 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=337649
Log: CURLOPT_CAINFO may also accept relative paths (fixes #70196)
 [2015-08-27 17:56 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2015-08-27 17:56 UTC] cmb@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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 18:01:36 2024 UTC