php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64798 curl_getinfo does not return info array if $opt = 0
Submitted: 2013-05-09 11:17 UTC Modified: 2016-06-21 20:46 UTC
From: bestestmail at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.25 OS: CentOS release 6.4 (Final)
Private report: No CVE-ID: None
 [2013-05-09 11:17 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-09 14:57 UTC] laruence@php.net
-Package: cURL related +Package: Documentation problem
 [2016-06-21 20:45 UTC] 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!
 [2016-06-21 20:46 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2016-06-21 20:46 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.
 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=d6f9689aae033c24177821bfba31143853328226
Log: Fix #64798: curl_getinfo does not return info array if $opt = 0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC