php.net |  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
 [2010-12-07 15:51 UTC] martin at kopta dot eu
Description:
------------
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: http://www.php.net/function.xmlrpc-decode#Description
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-13 10:50 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-12-13 10:52 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=306339
Log: Fixed bug #53493 (xmlrpc_decode should not be sensitive to leading whitespace)
 [2010-12-13 10:52 UTC] kalle@php.net
-Status: Assigned +Status: Closed
 [2010-12-13 10:52 UTC] kalle@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2010-12-13 11:04 UTC] pajoye@php.net
-Status: Closed +Status: Assigned
 [2010-12-13 11:04 UTC] pajoye@php.net
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] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=306341
Log: Revert fix for bug #53493 to be compliant with the XML specification
 [2010-12-13 15:30 UTC] kalle@php.net
-Status: Assigned +Status: Wont fix
 [2010-12-13 15:30 UTC] kalle@php.net
Done, thanks for the headsup Pierre
 [2010-12-14 17:10 UTC] pajoye@php.net
-Status: Wont fix +Status: Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 06:01:27 2024 UTC