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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Mar 31 16:01:29 2025 UTC