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

ID: 18404
Updated by: daniel.oconnor@gmail.com
Reported By: tj+pear at a13 dot fr
Summary: PHP Notice about undefined property:
XML_RPC2_Server_Input_PhpInput::$readReque
Status: Open
Type: Bug
Package: XML_RPC2
Operating System: FreeBSD and GNU/Linux
Package Version: 1.0.8
PHP Version: 5.3.6
-Assigned To:
+Assigned To: sergiosgc
Roadmap Versions:
New Comment:

-Assigned To:
+Assigned To: sergiosgc
Thanks for the patch Thibault - it LGTM. Let's see if we can get it
applied & released
soon.


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

[2011-03-28 23:00:36] tj

Added #patch bug:18404;patch:issue-18404;revision:1301353236;.

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

[2011-03-28 22:54:24] tj

Description:
------------
I think there are some errors in
XML_RPC2_Server_Input_PhpInput::isEmpty() when calling
XML_RPC2_Server_Input_PhpInput::readRequest(), and returning result.

I don't know very well XML_RPC2 but my first try generated this PHP
notice:
PHP Notice: Undefined property:
XML_RPC2_Server_Input_PhpInput::$readRequest in
/usr/local/share/php/XML/RPC2/Server/Input
/PhpInput.php on line 65

I will attach a patch, but I did not success running the entire test
suite. I had 17 tests failing before the patch and 17 after.

The problem was seen on 1.0.8 stable, but the patch was done in a
repository I created with:

git svn clone -s http://svn.php.net/repository/pear/packages/XML_RPC2
XML_RPC2


Test script:
---------------
$ cat BugTest.php
<?php

class BugTest {
/**
* Do something and return something
*
* @param string $param some param
* @return struct
*/
public static function test($param) {
}
}

require_once './XML/RPC2/Server.php';
require_once './XML/RPC2/Server/Input/PhpInput.php';
require_once './XML/RPC2/Value.php';

$server = XML_RPC2_Server::create('BugTest', array(
'input' => new XML_RPC2_Server_Input_PhpInput(),
'encoding' => 'utf-8',
'prefix' => 'bugTest.'
));
$server->handleCall();


Expected result:
----------------
$ php BugTest.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8"
/>
<title>Available XMLRPC methods for this server</title>
…


Actual result:
--------------
$ php BugTest.php
PHP Notice: Undefined property:
XML_RPC2_Server_Input_PhpInput::$readRequest in
/home/tj/tmp/XML_RPC/XML_RPC2/XML/RPC2/Server/Input/PhpInput.php on line
65
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8"
/>
<title>Available XMLRPC methods for this server</title>
…

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

Search Discussions

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

    ID: 18404
    Updated by: daniel.oconnor@gmail.com
    Reported By: tj+pear at a13 dot fr
    Summary: PHP Notice about undefined property:
    XML_RPC2_Server_Input_PhpInput::$readReque
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: XML_RPC2
    Operating System: FreeBSD and GNU/Linux
    Package Version: 1.0.8
    PHP Version: 5.3.6
    Assigned To: sergiosgc
    Roadmap Versions:
    New Comment:

    -Status: Assigned
    +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.

    r311546


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

    [2011-05-29 14:36:38] doconnor

    -Assigned To:
    +Assigned To: sergiosgc
    Thanks for the patch Thibault - it LGTM. Let's see if we can get it
    applied & released
    soon.

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

    [2011-03-28 23:00:36] tj

    Added #patch bug:18404;patch:issue-18404;revision:1301353236;.

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

    [2011-03-28 22:54:24] tj

    Description:
    ------------
    I think there are some errors in
    XML_RPC2_Server_Input_PhpInput::isEmpty() when calling
    XML_RPC2_Server_Input_PhpInput::readRequest(), and returning result.

    I don't know very well XML_RPC2 but my first try generated this PHP
    notice:
    PHP Notice: Undefined property:
    XML_RPC2_Server_Input_PhpInput::$readRequest in
    /usr/local/share/php/XML/RPC2/Server/Input
    /PhpInput.php on line 65

    I will attach a patch, but I did not success running the entire test
    suite. I had 17 tests failing before the patch and 17 after.

    The problem was seen on 1.0.8 stable, but the patch was done in a
    repository I created with:

    git svn clone -s http://svn.php.net/repository/pear/packages/XML_RPC2
    XML_RPC2


    Test script:
    ---------------
    $ cat BugTest.php
    <?php

    class BugTest {
    /**
    * Do something and return something
    *
    * @param string $param some param
    * @return struct
    */
    public static function test($param) {
    }
    }

    require_once './XML/RPC2/Server.php';
    require_once './XML/RPC2/Server/Input/PhpInput.php';
    require_once './XML/RPC2/Value.php';

    $server = XML_RPC2_Server::create('BugTest', array(
    'input' => new XML_RPC2_Server_Input_PhpInput(),
    'encoding' => 'utf-8',
    'prefix' => 'bugTest.'
    ));
    $server->handleCall();


    Expected result:
    ----------------
    $ php BugTest.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/HTML; charset=utf-8"
    />
    <title>Available XMLRPC methods for this server</title>
    …


    Actual result:
    --------------
    $ php BugTest.php
    PHP Notice: Undefined property:
    XML_RPC2_Server_Input_PhpInput::$readRequest in
    /home/tj/tmp/XML_RPC/XML_RPC2/XML/RPC2/Server/Input/PhpInput.php on line
    65
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/HTML; charset=utf-8"
    />
    <title>Available XMLRPC methods for this server</title>
    …

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 29, '11 at 1:37p
activeMay 29, '11 at 2:26p
posts2
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 2 posts

People

Translate

site design / logo © 2022 Grokbase