Doc #76328 [Opn->Ver]: Documentation of CURLINFO_HTTP_CODE as legacy

From: Date: Fri, 11 May 2018 15:22:48 +0000
Subject: Doc #76328 [Opn->Ver]: Documentation of CURLINFO_HTTP_CODE as legacy
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15686@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76328&edit=1 ID: 76328 Updated by: requinix@php.net Reported by: ssimo3 at lsuhsc dot edu Summary: Documentation of CURLINFO_HTTP_CODE as legacy -Status: Open +Status: Verified Type: Documentation Problem -Package: Documentation problem +Package: cURL related PHP Version: 5.6.36 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2018-05-11 13:59:19] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76328&edit=1

« previous php.doc.bugs (#15686) next »