|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53493 xmlrpc_decode should not be sensitive to leading whitespace
Submitted: 2010-12-07 15:51 UTC Modified: 2010-12-14 17:10 UTC
From: martin at kopta dot eu Assigned: kalle (profile)
Status: Not a bug Package: XMLRPC-EPI related
PHP Version: 5.3.3 OS: Ubuntu 10.04 LTS Server
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:
16 - 9 = ?
Subscribe to this entry?

 [2010-12-07 15:51 UTC] martin at kopta dot eu
My version of PHP is PHP 5.3.2-1ubuntu4.5. I did some upgrades a few hours/days back and I noticed that my XMLRPC responses are decoded as NULL by the xmlrpc_decode() function. As I experimented around this function, I found that it is sensitive to leading whitespace. When leading whitespace is present (a newline in my case), xmlrpc_decode() returns NULL. When ltrim() is used on the string before passed into xmlrpc_decode(), output is alright. Presence of whitespace present at the end of the string does not have any effect.

Summary: xmlrpc_decode() is sensitive to leading whitespace and it should not be.

From manual page:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-13 10:50 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-12-13 10:52 UTC]
Automatic comment from SVN on behalf of kalle
Log: Fixed bug #53493 (xmlrpc_decode should not be sensitive to leading whitespace)
 [2010-12-13 10:52 UTC]
-Status: Assigned +Status: Closed
 [2010-12-13 10:52 UTC]
This bug has been fixed in SVN.

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.

 [2010-12-13 11:04 UTC]
-Status: Closed +Status: Assigned
 [2010-12-13 11:04 UTC]
That's expected. That's part of the XML specification. There should be no data before the xml declaration. Kalle, please revert.
 [2010-12-13 15:29 UTC]
Automatic comment from SVN on behalf of kalle
Log: Revert fix for bug #53493 to be compliant with the XML specification
 [2010-12-13 15:30 UTC]
-Status: Assigned +Status: Wont fix
 [2010-12-13 15:30 UTC]
Done, thanks for the headsup Pierre
 [2010-12-14 17:10 UTC]
-Status: Wont fix +Status: Bogus
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Sep 29 05:05:53 2022 UTC