[PEAR-BUG] Bug #18701 [Opn->Ver]: Only variables should be passed by reference

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18701&edit=1

 ID:               18701
 Updated by:       [email protected]
 Reported By:      williamokano at gmail dot com
 Summary:          Only variables should be passed by reference
-Status:           Open
+Status:           Verified
 Type:             Bug
 Package:          HTTP_OAuth
 Operating System: Windows
 Package Version:  0.2.3
 PHP Version:      5.3.1
 Roadmap Versions: 
 New Comment:

-Status: Open
+Status: Verified
How odd - I can't imagine why there even needs to be a call to reset()


Previous Comments:
------------------------------------------------------------------------

[2011-08-01 16:51:23] williamokano

Description:
------------
When I run the Dropbox API (that uses PEAR HTTP OAuth) e receive a
STRICT NOTICE that "Only variables should be passed by reference".

I solved My Problem just declaring a variable before the method call.

Was "$croppedUrl = reset(explode('?', $url));" And now is
"        $temp = explode('?', $url);
        $croppedUrl = reset($temp);"

Actual result:
--------------
D:\ProjetosWilliam\sitelocal\index.php (Linha 20): getToken();
D:\ProjetosWilliam\sitelocal\Dropbox\API.php (Linha 68): fetch();
D:\ProjetosWilliam\sitelocal\Dropbox\OAuth\PEAR.php (Linha 113):
send();
D:\ProjetosWilliam\sitelocal\HTTP\OAuth\Consumer\Request.php (Linha
211): buildRequest();
D:\ProjetosWilliam\sitelocal\HTTP\OAuth\Consumer\Request.php (Linha
264): build();
D:\ProjetosWilliam\sitelocal\HTTP\OAuth\Signature\HMAC\SHA1.php (Linha
58): getBase();
D:\ProjetosWilliam\sitelocal\HTTP\OAuth\Signature\Common.php (Linha 58):
manipuladorErros();

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18701&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.