php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79105 curl_share_setopt incorrect argument type
Submitted: 2020-01-12 16:42 UTC Modified: 2020-03-12 15:39 UTC
From: php dot net at chris dot cs278 dot org Assigned: cmb (profile)
Status: Closed Package: cURL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2020-01-12 16:42 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-12 15:34 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-03-12 15:38 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=349391
Log: Fix #79105: curl_share_setopt incorrect argument type
 [2020-03-12 15:39 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2020-03-12 15:39 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-03-12 15:40 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=46b3f856ba340245aaca0d252f10586b2e63f641
Log: Fix #79105: curl_share_setopt incorrect argument type
 [2020-03-13 09:45 UTC] mumumu@php.net
Automatic comment from SVN on behalf of mumumu
Revision: http://svn.php.net/viewvc/?view=revision&revision=349403
Log: Fix #79105: curl_share_setopt incorrect argument type
 [2020-03-13 09:50 UTC] phpdocbot@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=7461112031f5a391e69a620ed5cc861801283782
Log: Fix #79105: curl_share_setopt incorrect argument type
 [2020-12-30 11:59 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=b8dd191bcaf2724d0be7515d8bf35b1cbf0cda55
Log: Fix #79105: curl_share_setopt incorrect argument type
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 20:01:30 2024 UTC