Doc #65415 [Opn->Csd]: curl_getinfo() with set opt doesn't return a string but a float
| From: | krakjoe@php.net | Date: | Fri, 04 Oct 2013 17:16:54 +0000 |
| Subject: | Doc #65415 [Opn->Csd]: curl_getinfo() with set opt doesn't return a string but a float | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10412@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65415&edit=1
ID: 65415
Updated by: krakjoe@php.net
Reported by: fausten at pw-internet dot de
Summary: curl_getinfo() with set opt doesn't return a string
but a float
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: cURL related
Operating System: FreeBSD 9.1
PHP Version: 5.4.17
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2013-10-04 17:16:48] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331667
Log: #65415 clarity in description
------------------------------------------------------------------------
[2013-08-07 14:49:17] fausten at pw-internet dot de
Description:
------------
The doc says:
http://php.net/manual/en/function.curl-getinfo.php
"If opt is given, returns its value as a string. Otherwise, returns an associative array with
the following elements (which correspond to opt), or FALSE on failure"
Test script:
---------------
<?php
$resCurl = curl_init('http://www.dddbl.de');
curl_exec($resCurl);
var_dump(curl_getinfo($resCurl, CURLINFO_CONTENT_LENGTH_DOWNLOAD));
Expected result:
----------------
string(4) "4531"
Actual result:
--------------
float(4531)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65415&edit=1