PHP :: Doc Bug #42190 :: Docu for xmlrpc_set_type: a few hints
| 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: | None | ||
[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
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-08-16 09:22 UTC] vrana@php.net