Bug #65105 [Asn->Csd]: callback of urlprogress change not documented
| From: | salathe@php.net | Date: | Sun, 23 Jun 2013 12:49:49 +0000 |
| Subject: | Bug #65105 [Asn->Csd]: callback of urlprogress change not documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9970@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65105&edit=1
ID: 65105
Updated by: salathe@php.net
Reported by: adrian dot sandu at asandu dot eu
Summary: callback of urlprogress change not documented
-Status: Assigned
+Status: Closed
Type: Bug
Package: Documentation problem
Operating System: Gentoo Linux
PHP Version: 5.5.0
Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
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.
Fixed the CURLOPT_PROGRESSFUNCTION, which was completely wrong. Also added
appropriate changelog entries.
Previous Comments:
------------------------------------------------------------------------
[2013-06-23 12:48:47] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=330624
Log: CURLOPT_PROGRESSFUNCTION 5.5.0 change (doc #65105)
Also added 5.3.0 changelog entry as when
CURLOPT_PROGRESSFUNCTION was introduced.
------------------------------------------------------------------------
[2013-06-23 11:01:19] adrian dot sandu at asandu dot eu
Description:
------------
I've just upgraded to 5.5 from 5.3 and the sourcecode says that the callback (
for progress ) now has 5 params instead of 4 ( first being the curl handle ).
That's not documented anywhere in php.net/curl_setopt :|
Test script:
---------------
In 5.3
function callback($download_size, $downloaded, $upload_size, $uploaded)
...
curl_setopt(ch, CURLOPT_PROGRESSFUNCTION, "callback");
In 5.5
function callback($ch, $download_size, $downloaded, $upload_size, $uploaded)
Expected result:
----------------
The callback function to work as expected ...
Actual result:
--------------
$download_size is a curl resource !
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65105&edit=1