[PEAR-BUG] Bug #18701 [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:           Verified
 Type:             Bug
 Package:          HTTP_OAuth
 Operating System: Windows
 Package Version:  0.2.3
 PHP Version:      5.3.1
-Assigned To:      
+Assigned To:      shupp
 Roadmap Versions: 
 New Comment:

-Assigned To:
+Assigned To: shupp
I already fixed this in one other place, I didn't realize it was used
elsewhere.  I'll get 
this one fixed and grep around for other uses before pushing it out.

Thanks,

Bill


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

[2011-08-02 14:15:00] doconnor

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

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

[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.