Doc #79105 [Opn->Ver]: curl_share_setopt incorrect argument type
| From: | cmb@php.net | Date: | Thu, 12 Mar 2020 15:34:25 +0000 |
| Subject: | Doc #79105 [Opn->Ver]: curl_share_setopt incorrect argument type | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17398@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79105&edit=1
ID: 79105
Updated by: cmb@php.net
Reported by: php dot net at chris dot cs278 dot org
Summary: curl_share_setopt incorrect argument type
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: cURL related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2020-01-12 16:42:45] php dot net at chris dot cs278 dot org
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 this bug report at https://bugs.php.net/bug.php?id=79105&edit=1