php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42190 Docu for xmlrpc_set_type: a few hints
Submitted: 2007-08-02 21:07 UTC Modified: 2007-08-16 09:22 UTC
From: giunta dot gaetano at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID:
 [2007-08-02 21:07 UTC] giunta dot gaetano at gmail dot com
Description:
------------
"Sets xmlrpc type, base64 or datetime, for a PHP string value" is fine, but a couple more details would be better off in the official docs than in the comments:

+ only valid values for $type are 'datetime' and 'base64'

+ when setting type to base64, the encoding process is carried out by the function, the user does not need to do the base64 encoding on its own

+ the type-setting process changes the string variable upon which it acts, converting it in fact (when successful) in an anonymous object

+ if conversion process fails, the function returns false, so it is easy to check if it worked before calling xmlrpc_encode() on the data


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-16 09:22 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.

> when setting type to base64, the encoding process is carried out by the function, the user does not need to do the base64 encoding on its own

Encoding is not done by xmlrpc_set_type() but later.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 02:02:11 2014 UTC