Doc #64632 [Opn->Csd]: Wrong callback arguments

From: Date: Mon, 04 May 2015 18:46:44 +0000
Subject: Doc #64632 [Opn->Csd]: Wrong callback arguments
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12292@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64632&edit=1

 ID:                 64632
 Updated by:         cmb@php.net
 Reported by:        j dot amend at gmail dot com
 Summary:            Wrong callback arguments
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            cURL related
 Operating System:   Gentoo Linux
 PHP Version:        5.5.0beta3
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in the documentation.

Thank you for the report, and for helping us make our documentation better.


Previous Comments:
------------------------------------------------------------------------
[2013-04-11 16:04:34] 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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=64632&edit=1


Thread (2 messages)

« previous php.doc.bugs (#12292) next »