Bug #64798 [Opn->Csd]: curl_getinfo does not return info array if $opt = 0
| From: | cmb@php.net | Date: | Tue, 21 Jun 2016 20:46:33 +0000 |
| Subject: | Bug #64798 [Opn->Csd]: curl_getinfo does not return info array if $opt = 0 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13575@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64798&edit=1
ID: 64798
Updated by: cmb@php.net
Reported by: bestestmail at gmail dot com
Summary: curl_getinfo does not return info array if $opt = 0
-Status: Open
+Status: Closed
Type: Bug
Package: Documentation problem
Operating System: CentOS release 6.4 (Final)
PHP Version: 5.3.25
-Assigned To:
+Assigned To: cmb
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:
------------------------------------------------------------------------
[2016-06-21 20:45:50] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339443
Log: Fix #64798: curl_getinfo does not return info array if $opt = 0
Actually, $opt has no default value!
------------------------------------------------------------------------
[2013-05-09 11:17:35] bestestmail at gmail dot com
Description:
------------
In documentation (http://www.php.net/manual/en/function.curl-getinfo.php),
description of function curl_getinfo is "mixed curl_getinfo ( resource $ch [, int
$opt = 0 ] )", when i use curl_getinfo( ..., 0) i dont get array of information
instead it returns null, but if i use special constant like CURLINFO_EFFECTIVE_URL
i get specific value.
Expected result:
----------------
Expect all information array
Actual result:
--------------
null
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64798&edit=1