PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » XML_RPC » Bug #7837

Converting string to base64 is wrong

Details

Submitted2006-06-08 15:22 UTC
Fromfredy at elevator dot cz
Assigneddanielc
StatusClosed
PackageXML_RPC
PHP Version5.1.1
OSLinux Gentoo (2.6.13-gentoo-r3)
Roadmaps(Not assigned)

Comments

[2006-06-08 15:22 UTC] fredy at elevator dot cz

Description:
------------
Hello
I have just updated to latest stable version and my application gone mad. After some digging i have discovered, that fix you have made is really useless for me.

When i try send string in other language (czech is my native) and there are some special characters for this language (other than ASCII). XML_RPC encodes it into base64 and server-side script (which receives my message) just don't know what to do.

I suggest make this behaviour optional, because i cannot change server script to accept this a decode string from base64 back to original string.

Other problem is, that PREG functions doesn't support multibyte strings and for example my 'รก' character is divided into two other characters, which in some cases can broke conditional and not transform binary unsafe string.

You should add there optional support for mb_ereg_match, so i can set encoding with mb_regex_encoding() and it will work correctly.

[2006-06-12 11:41 UTC] fredy at elevator dot cz

Ok, seems fine to me. Would you release it so i can update "legally" ?