Bug #65105 [NEW]: callback of urlprogress change not documented
| From: | adrian dot sandu at asandu dot eu | Date: | Sun, 23 Jun 2013 11:01:19 +0000 |
| Subject: | Bug #65105 [NEW]: callback of urlprogress change not documented | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9969@lists.php.net to get a copy of this message | ||
From: adrian dot sandu at asandu dot eu
Operating system: Gentoo Linux
PHP version: 5.5.0
Package: Documentation problem
Bug Type: Bug
Bug description:callback of urlprogress change not documented
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 bug report at https://bugs.php.net/bug.php?id=65105&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65105&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65105&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65105&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65105&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65105&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65105&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65105&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65105&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65105&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65105&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65105&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65105&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65105&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65105&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65105&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65105&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65105&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65105&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65105&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65105&r=mysqlcfg