php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76328 Documentation of CURLINFO_HTTP_CODE as legacy
Submitted: 2018-05-11 13:59 UTC Modified: 2018-05-11 16:12 UTC
From: ssimo3 at lsuhsc dot edu Assigned: cmb (profile)
Status: Closed Package: cURL related
PHP Version: 5.6.36 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ssimo3 at lsuhsc dot edu
New email:
PHP Version: OS:

 

 [2018-05-11 13:59 UTC] ssimo3 at lsuhsc dot edu
Description:
------------
---
From manual page: http://www.php.net/function.curl-getinfo
---

I believe that whoever documented the change to curlinfo in PHP 5.5, i.e., added CURLINFO_RESPONSE_CODE, forgot to state "(Legacy - from PHP 5.5 onward, use CURLINFO_RESPONSE_CODE instead)" after the definition of CURLINFO_HTTP_CODE. I do not have any code which does not contain secret credentials which demonstrates that they are the same. Nonetheless, even in the most obscure of response codes, they appear to change in lockstep. Thank you!

Stuart Simon


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-11 15:22 UTC] requinix@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: cURL related
 [2018-05-11 15:22 UTC] requinix@php.net
https://curl.haxx.se/libcurl/c/CURLINFO_RESPONSE_CODE.html
> This option was previously known as CURLINFO_HTTP_CODE in libcurl 7.10.7 and earlier.
 [2018-05-11 16:11 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=345002
Log: Fix #76328: Documentation of CURLINFO_HTTP_CODE as legacy
 [2018-05-11 16:12 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-05-11 16:12 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:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=91bd08216784212011972ece4d6b311160f11f44
Log: Fix #76328: Documentation of CURLINFO_HTTP_CODE as legacy
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC