php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64632 Wrong callback arguments
Submitted: 2013-04-11 16:04 UTC Modified: 2015-05-04 18:46 UTC
Votes:2
Avg. Score:2.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: j dot amend at gmail dot com Assigned: cmb (profile)
Status: Closed Package: cURL related
PHP Version: 5.5.0beta3 OS: Gentoo Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: j dot amend at gmail dot com
New email:
PHP Version: OS:

 

 [2013-04-11 16:04 UTC] j dot amend at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.curl-setopt#refsect1-function.curl-setopt-description
---

The CURLOPT_PROGRESSFUNCTION callback is actually called with 4 arguments in PHP 5.3-5.4, not 3 as in the documentation:

$download_size, $downloaded, $upload_size, $uploaded

In PHP 5.5, it changed to 5 arguments, also not documented:

$curl_handle, $download_size, $downloaded, $upload_size, $uploaded


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-04 18:46 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2015-05-04 18:46 UTC] cmb@php.net
This bug has been fixed in the documentation.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 11:01:32 2025 UTC