Bug #17949: bad behaviour of xmlrpc_decode() with xml content in string
| From: | bruno dot pennec at netcourrier dot com | Date: | Mon, 24 Jun 2002 17:29:31 +0000 |
| Subject: | Bug #17949: bad behaviour of xmlrpc_decode() with xml content in string | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11945@lists.php.net to get a copy of this message | ||
From: bruno.pennec@netcourrier.com
Operating system: linux 2.4
PHP version: 4.2.1
PHP Bug Type: XMLRPC-EPI related
Bug description: bad behaviour of xmlrpc_decode() with xml content in string
/**
This code is a xmlrpc server response. One variable contain a xml fragment
in which special characters have been "escaped".
The result is :
bad value
instead of :
<qos> <state id='OK'/> <sender>bad
value</sender>
</qos>
it is really annoying for exchanging xml documents with each others
**/
<?php
$src = <<<toto
<?xml version="1.0" encoding="ISO-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<array>
<data>
<value><base64>MzAxMDU2MA==</base64></value>
<value><string><qos> <state
id='OK'/>
<sender>bad value</sender>
</qos></string></value>
</data>
</array>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
toto
;
print_r( xmlrpc_decode($src));
?>
--
Edit bug report at http://bugs.php.net/?id=17949&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17949&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17949&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17949&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17949&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17949&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17949&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17949&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17949&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17949&r=globals