开发者

pecl oauth - problem with request engine

开发者 https://www.devze.com 2023-03-17 07:49 出处:网络
I am trying to use pecl oauth $oauth = new OAuth($conskey,$conssec,OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_URI)开发者_JS百科;

I am trying to use pecl oauth

$oauth = new OAuth($conskey,$conssec,OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_URI)开发者_JS百科;

but when a call to

$oauth->setRequestEngine(OAUTH_REQENGINE_CURL)

i am getting a warning that constant OAUTH_REQENGINE_CURL is a string and NOT an int.

The other constant used to set the engine OAUTH_REQENGINE_CURL is an integer.

Is this a bug? Have i missed something?

Using php 5.3.5 and pecl-oauth v1.2

OAUTH_REQENGINE_CURL is not defined as a constant.

Although in file php_auth.c the following lines define the 2 engines

define OAUTH_REQENGINE_STREAMS 1

define OAUTH_REQENGINE_CURL 2

Thanks,

0

精彩评论

暂无评论...
验证码 换一张
取 消