FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18701&edit=1

ID: 18701
Updated by: daniel.oconnor@gmail.com
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();

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

Search Discussions

  • Hostmaster at Aug 2, 2011 at 4:47 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=18701&edit=1

    ID: 18701
    Updated by: hostmaster@shupp.org
    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();

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 2, '11 at 12:14p
activeAug 2, '11 at 4:47p
posts2
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 1 post Hostmaster: 1 post

People

Translate

site design / logo © 2022 Grokbase