php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65105 callback of urlprogress change not documented
Submitted: 2013-06-23 11:01 UTC Modified: 2013-06-23 12:49 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: adrian dot sandu at asandu dot eu Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.5.0 OS: Gentoo Linux
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: adrian dot sandu at asandu dot eu
New email:
PHP Version: OS:

 

 [2013-06-23 11:01 UTC] 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 !

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-23 12:43 UTC] salathe@php.net
-Assigned To: +Assigned To: salathe
 [2013-06-23 12:48 UTC] 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 12:49 UTC] salathe@php.net
-Status: Assigned +Status: Closed
 [2013-06-23 12:49 UTC] salathe@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.

Fixed the CURLOPT_PROGRESSFUNCTION, which was completely wrong. Also added 
appropriate changelog entries.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 11:01:30 2024 UTC