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

ID: 18329
Comment by: ronino
Reported By: linux at ronino dot de
Summary: Fatal error in HTTPRequest.php
Status: Analyzed
Type: Bug
Package: XML_RPC2
Operating System: Centos 5.5
Package Version: 1.0.8
PHP Version: 5.3.5
Assigned To: sergiosgc
New Comment:

Same here. The problem is that you cannot react to a failed request as
the script dies with a fatal error...


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

[2011-04-26 16:27:33] normelton

Has there been any progress here? I realize just saying "me too" doesn't
do much good, but I'd love to see 1.0.9 released with this fix.

Thanks

Norman

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

[2011-03-26 20:43:37] till

<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Analyzed</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: sergiosgc</span>
</div>Hey Sergio,

can you take care of this? Libor gave you the solution and the fix seems
trivial.

Cheers,
Till

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

[2011-03-03 07:53:23] libor

file /XML/RPC2/Util/HTTPRequest.php
line 235
if ($result->getStatus() != 200) throw new
XML_RPC2_ReceivedInvalidStatusCodeException('Received non-200 HTTP Code:
' . $request->getStatus() . '. Response body:' . $result->getBody());

Object $request is from HTTP_Request2 class, but in this class is no
getStatus() method.
I think in line 235 should be variable $result instead of variable
$request

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

[2011-03-02 19:13:14] remicollet

With HTTP_Request2 0.6.0 installed :
101 PASSED TESTS
7 SKIPPED TESTS

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

[2011-03-02 19:08:27] remicollet

Test suite fails because of this.
71 PASSED TESTS
7 SKIPPED TESTS
30 FAILED TESTS
All with "Warning: require_once(HTTP/Request2.php): failed to open
stream: No such file or directory... XML/RPC2/Util/HTTPRequest.php on
line 45..."

According to changelog curl extension is replace by HTTP_REQUEST2 in
version 1.1, not in 1.0.

I don't find SVN for 1.0 branch (only trunk which is, I think 1.1),
branches folder on subversion is empty.
http://svn.php.net/viewvc/pear/packages/XML_RPC2/branches/

It seems both 1.1.0beta and 1.0.8 were taged from trunk ?
Could you please explain ?

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=18329

Search Discussions

  • Daniel Oconnor at May 29, 2011 at 2:29 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=18329&edit=1

    ID: 18329
    Updated by: daniel.oconnor@gmail.com
    Reported By: libor dot bubik at proit dot cz
    Summary: Fatal error in HTTPRequest.php
    -Status: Analyzed
    +Status: Closed
    Type: Bug
    Package: XML_RPC2
    Operating System: Centos 5.5
    Package Version: 1.0.8
    PHP Version: 5.3.5
    Assigned To: sergiosgc
    Roadmap Versions:
    New Comment:

    -Status: Analyzed
    +Status: Closed
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on pear.php.net
    by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.

    r311547


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

    [2011-05-24 17:43:43] ronino

    Same here. The problem is that you cannot react to a failed request as
    the script dies with a fatal error...

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

    [2011-04-26 16:27:33] normelton

    Has there been any progress here? I realize just saying "me too" doesn't
    do much good, but I'd love to see 1.0.9 released with this fix.

    Thanks

    Norman

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

    [2011-03-26 20:43:37] till

    -Status: Open
    +Status: Analyzed
    -Assigned To:
    +Assigned To: sergiosgc
    Hey Sergio,

    can you take care of this? Libor gave you the solution and the fix seems
    trivial.

    Cheers,
    Till

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

    [2011-03-03 07:53:23] libor

    file /XML/RPC2/Util/HTTPRequest.php
    line 235
    if ($result->getStatus() != 200) throw new
    XML_RPC2_ReceivedInvalidStatusCodeException('Received non-200 HTTP Code:
    ' . $request->getStatus() . '. Response body:' . $result->getBody());

    Object $request is from HTTP_Request2 class, but in this class is no
    getStatus() method.
    I think in line 235 should be variable $result instead of variable
    $request

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

    [2011-03-02 19:13:14] remicollet

    With HTTP_Request2 0.6.0 installed :
    101 PASSED TESTS
    7 SKIPPED TESTS

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=18329

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 24, '11 at 4:45p
activeMay 29, '11 at 2:29p
posts2
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 1 post Ronino: 1 post

People

Translate

site design / logo © 2022 Grokbase