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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 + 43 = ?
Subscribe to this entry?

 
 [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: Sat May 04 21:01:32 2024 UTC