#42190 [Opn->Csd]: Docu for xmlrpc_set_type: a few hints

From: Date: Thu, 16 Aug 2007 09:22:07 +0000
Subject: #42190 [Opn->Csd]: Docu for xmlrpc_set_type: a few hints
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377377@lists.php.net to get a copy of this message
ID: 42190 Updated by: vrana@php.net Reported By: giunta dot gaetano at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: irrelevant 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. > 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. Previous Comments: ------------------------------------------------------------------------ [2007-08-02 21:07:51] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42190&edit=1

« previous php.doc (#969377377) next »