From: fernando dot nemec at folha dot com dot br Operating system: Linux 2.4 PHP version: 4.3.6 PHP Bug Type: XMLRPC-EPI related Bug description: Wrong numeric entities convertion in xmlrpc_encode_request
Description: ------------ In special circunstances, the funcion xmlrpc_encode_request may do wrong numeric entities convertions. This occur when the escaping is set to "non-ascii" (this is on by default) and when the xml data has any caracter which ascii code % 10 < 10 (ex: 202,203,204, so on). Reproduce code: --------------- $request_xml = xmlrpc_encode_request( "method" , Array( "�emec" ) , Array( "version" => "xmlrpc" ) ) ; print( $request_xml ) ; Expected result: ---------------- <?xml version="1.0" encoding="iso-8859-1"?> <methodCall> <methodName>teste</methodName> <params> <param> <value> <string>Ñemec</string> </value> </param> </params> </methodCall> Actual result: -------------- <?xml version="1.0" encoding="iso-8859-1"?> <methodCall> <methodName>teste</methodName> <params> <param> <value> <string>emec</string> </value> </param> </params> </methodCall> -- Edit bug report at http://bugs.php.net/?id=28597&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28597&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28597&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28597&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28597&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28597&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28597&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28597&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28597&r=support Expected behavior: http://bugs.php.net/fix.php?id=28597&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28597&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28597&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28597&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28597&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28597&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28597&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28597&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28597&r=float
