Doc #79105 [NEW]: curl_share_setopt incorrect argument type
| From: | php dot net at chris dot cs278 dot org | Date: | Sun, 12 Jan 2020 16:42:45 +0000 |
| Subject: | Doc #79105 [NEW]: curl_share_setopt incorrect argument type | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-17197@lists.php.net to get a copy of this message | ||
From: php dot net at chris dot cs278 dot org
Operating system:
PHP version: Irrelevant
Package: cURL related
Bug Type: Documentation Problem
Bug description:curl_share_setopt incorrect argument type
Description:
------------
---
From manual page: https://php.net/function.curl-share-setopt
---
The $value argument is documented as a string but the function is
defined as accepting anything, currently all the supported values are
integers.
proto bool curl_share_setopt(resource sh, int option, mixed value)
https://github.com/php/php-src/blob/bbcfa66e06110d8256595e644378a5358dda3558/ext/curl/share.c#L90
--
Edit bug report at https://bugs.php.net/bug.php?id=79105&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79105&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79105&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79105&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79105&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79105&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79105&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79105&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79105&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79105&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79105&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79105&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79105&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79105&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79105&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79105&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79105&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79105&r=mysqlcfg