#49378 [Opn->Csd]: Bug in example for xmlrpc_encode_request

From: Date: Fri, 13 Nov 2009 22:41:53 +0000
Subject: #49378 [Opn->Csd]: Bug in example for xmlrpc_encode_request
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3153@lists.php.net to get a copy of this message
ID: 49378 Updated by: vrana@php.net Reported By: david at sickmiller dot com -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-08-26 19:55:21] david at sickmiller dot com Description: ------------ The documentation for xmlrpc_encode_request includes these two lines: $response = xmlrpc_decode($file); if (xmlrpc_is_fault($response)) { xmlrpc_decode's result type is mixed. When it returns something that is not an array, the following notice is thrown: PHP Notice: xmlrpc_is_fault(): Array argument expected in <file> on line <line> In bug #40793, it was reasserted that this notice from xmlrpc_is_fault() is by design. Thus, the example code must be wrong. (I wouldn't expect that a proper example should throw notices.) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49378&edit=1

« previous php.doc.bugs (#3153) next »