pecl oauth - problem with request engine
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,
精彩评论