Incorrect detail on a php function doc page; Post a note or deal with some other way?
| From: | Matt Saunders | Date: | Mon, 22 Nov 2004 14:48:12 +0000 |
| Subject: | Incorrect detail on a php function doc page; Post a note or deal with some other way? | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969365165@lists.php.net to get a copy of this message | ||
Hi,
I've been using the documentation for curl_getinfo at http://www.php.net/curl_getinfo . There is an incorrect item in the many body of the documentation for that function; it's minor, but it cost me ten minutes wondering what on earth I was doing wrong.
The error is in the section, '
If called without the optional parameter opt an associative array is returned with the following array elements'
The third element name down, 'http_encode' should read 'http_code'.
I've tested this and here's a print_r of part of the result:
Array
(
[url] => http://www.plus.net
[content_type] => text/html
[http_code] => 200
[header_size] => 442
I was going to post a note, but since I thought notes were for extra detail / usage suggestions etc, and that since this is a mistake rather than just a shortcoming, that perhaps the manual editors would prefer to know about it some other way.
Hope this is helpful, and sorry if I should have just posted a Note.
Matt Saunders.