Allow base64/binary values to support binary data#60
Open
temistokles wants to merge 1 commit intogggeek:masterfrom
Open
Allow base64/binary values to support binary data#60temistokles wants to merge 1 commit intogggeek:masterfrom
temistokles wants to merge 1 commit intogggeek:masterfrom
Conversation
Usage e.g.: php_xmlrpc_encode(file_get_contents(...), ['base64']) php_xmlrpc_encode(file_get_contents(...), ['binary'])
Owner
|
Interesting, but I am not 100% convinced by the API change that this introduces. Let me explain: a) what is the added value ?
b) what kind of API design does this change suggest? Currently the
If you allow the
Maybe we could make a small tweak to make it possible to achieve what you desire, while keeping more in line with the current API by simply renaming the option to 'strings_as_base64' ? |
Owner
|
ps $xmlrpcBinary ? |
Contributor
|
yea, I use https://github.com/eventum/rpc/blob/v4.3.0/src/XmlRpcClient.php#L82-L92 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Usage e.g.:
php_xmlrpc_encode(file_get_contents(...), ['base64'])
php_xmlrpc_encode(file_get_contents(...), ['binary'])