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

ID: 16300
Updated by: sergiosgc@gmail.com
Reported By: soryu2 at gmail dot com
Summary: Encoding of NULL values
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: XML_RPC2
Operating System: Mac OX X.5.7
Package Version: 1.0.5
PHP Version: 5.2.9
-Assigned To:
+Assigned To: sergiosgc
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: sergiosgc
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.

Previous Comments:

[2009-06-07 13:24:01] soryu2

The PHP backend cannot encode NULL values, which the xmlrpc ext
backend apparently can.

(I cannot use the xmlrpc ext backend because it garbles multibyte
characters, and I'm using UTF-8).

Anyway, if the non-support of NULL values is a strict interpretation of
xmlrpc spec, maybe there could be a configuration switch so that NULL
values would be interpreted as empty strings?

Test script:
require_once 'XML/RPC2/Client.php';
$rpc_client = XML_RPC2_Client::create("http://localhost/");
$rpc_client->method(array('a' => null));
catch (Exception $e)
print "EXCEPTION:".$e->getMessage();

Expected result:
No output

Actual result:
EXCEPTION:Impossible to encode value '' from type 'NULL'. No analogous
type in XML_RPC.
#0 /usr/local/php5/lib/php/XML/RPC2/Backend/Php/Value/Struct.php(107):


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedFeb 24, '11 at 7:32p
activeFeb 24, '11 at 7:32p

1 user in discussion

Sergiosgc: 1 post



site design / logo © 2022 Grokbase