Bug #17949 Updated: bad behaviour of xmlrpc_decode() with xml content in string

From: Date: Mon, 24 Jun 2002 20:18:13 +0000
Subject: Bug #17949 Updated: bad behaviour of xmlrpc_decode() with xml content in string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11965@lists.php.net to get a copy of this message
ID: 17949 Updated by: bruno.pennec@netcourrier.com Reported By: bruno.pennec@netcourrier.com -Status: Open +Status: Bogus Bug Type: XMLRPC-EPI related Operating System: linux 2.4 PHP Version: 4.2.1 New Comment: not php fault,mine ! xml_decode works fine ! Previous Comments: ------------------------------------------------------------------------ [2002-06-24 14:15:19] bruno.pennec@netcourrier.com sorry, result content for second value must be <qos> <state id='OK'> <sender>bad value</sender> </qos> ------------------------------------------------------------------------ [2002-06-24 13:29:30] bruno.pennec@netcourrier.com /** 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 : &lt;qos&gt; &lt;state id='OK'/&gt; &lt;sender&gt;bad value&lt;/sender&gt; &lt;/qos&gt; 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>&lt;qos&gt; &lt;state id='OK'/&gt; &lt;sender&gt;bad value&lt;/sender&gt; &lt;/qos&gt;</string></value> </data> </array> </value> </data> </array> </value> </param> </params> </methodResponse> toto ; print_r( xmlrpc_decode($src)); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17949&edit=1

« previous php.bugs (#11965) next »