|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28597 Wrong numeric entities convertion in xmlrpc_encode_request
Submitted: 2004-06-01 01:55 UTC Modified: 2004-06-01 22:16 UTC
From: fernando dot nemec at folha dot com dot br Assigned:
Status: Closed Package: XMLRPC-EPI related
PHP Version: 4.3.6 OS: Linux 2.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 + 27 = ?
Subscribe to this entry?

 [2004-06-01 01:55 UTC] fernando dot nemec at folha dot com dot br
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"?>

Actual result:
<?xml version="1.0" encoding="iso-8859-1"?>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-01 02:04 UTC] fernando dot nemec at folha dot com dot br
Actually, I have made a patch for this issue, but Im not sure for who I must send it. 

So, the URL with a udiff is:


 [2004-06-01 08:17 UTC]
Please send the patch to referring to this bugreport (and a simple analysis describing why the current code is wrong).
 [2004-06-01 16:35 UTC] fernando dot nemec at folha dot com dot br

My mail server says such account doesn't exist. 

<>: does not like recipient.
Remote host said: 550 no such account
Giving up on

 [2004-06-01 16:46 UTC] then...
 [2004-06-01 22:16 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Oct 31 11:01:24 2020 UTC