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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 09:01:29 2024 UTC