php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49378 Bug in example for xmlrpc_encode_request
Submitted: 2009-08-26 19:55 UTC Modified: 2009-11-13 22:41 UTC
From: david at sickmiller dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-08-26 19:55 UTC] 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.)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-13 22:41 UTC] vrana@php.net
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.


 [2009-11-13 22:41 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=290719
Log: Catch errors in example (bug #49378)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC