#28597 [NEW]: Wrong numeric entities convertion in xmlrpc_encode_request

From: Date: Mon, 31 May 2004 23:55:29 +0000
Subject: #28597 [NEW]: Wrong numeric entities convertion in xmlrpc_encode_request
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60225@lists.php.net to get a copy of this message
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>&#209;emec</string> </value> </param> </params> </methodCall> Actual result: -------------- <?xml version="1.0" encoding="iso-8859-1"?> <methodCall> <methodName>teste</methodName> <params> <param> <value> <string>&#29;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

« previous php.bugs (#60225) next »