php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67649 OAuth::getRequestToken() has a 3rd parameter
Submitted: 2014-07-18 14:20 UTC Modified: 2014-11-13 22:18 UTC
From: cweiske@php.net Assigned: cweiske (profile)
Status: Closed Package: oauth (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cweiske@php.net
New email:
PHP Version: OS:

 

 [2014-07-18 14:20 UTC] cweiske@php.net
Description:
------------
---
From manual page: http://www.php.net/oauth.getrequesttoken
---

OAuth::getRequestToken() has a 3rd parameter that is not documented - the HTTP method. Per RFC 5849 is MUST be set to POST, but it does not currently do that automatically. Using the 3rd parameter is a workaround.

See the source code in http://svn.php.net/viewvc/pecl/oauth/trunk/oauth.c?revision=332108&view=markup#l2193

> zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zs", &url, &url_len, &callback_url, &http_method, &http_method_len


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-19 07:40 UTC] cweiske@php.net
OAuth::getAccessToken() also has a 4th undocumented parameter; again the http method.
 [2014-11-13 22:17 UTC] cweiske@php.net
Automatic comment from SVN on behalf of cweiske
Revision: http://svn.php.net/viewvc/?view=revision&revision=335182
Log: FIx doc bug #67649: OAuth::getRequestToken() has a 3rd parameter

Document the http_method parameter for getAccessToken() and getRequestToken().
 [2014-11-13 22:18 UTC] cweiske@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cweiske
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC