XMLRPC issue

Hi all,

I was upgrading php from 5.6 to 5.11 and came across one odd issue. Hope
someone could point out what is the problem.

Following code demonstrates it:

$xml = '<?xml version="1.0"
encoding="UTF-8"?><methodResponse><params><param><value><Test/></value></param></params></methodResponse>';

echo xmlrpc_decode($xml);

I suspect to get "<Test/>" as a result, but for some reason < and > are
cut out and i'm getting "Test/". So basically all entities are dropped
from response.

I have 2nd server running same OS (CentOS 5) which has been upgraded
first and it works as i suspect, code above shows "<Test/>".

Any advice will be much appreciated.

Currently I have temporary workaround for this:

$xml = str_replace(array('<','>'), array('<','>'), $xml);

but would like to fix xmlrpc somehow.

Regards,
Dmitry Ruban




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dmitry Ruban [ Do, 04 März 2010 05:46 ] [ ID #2034044 ]
PHP » gmane.comp.php.general » XMLRPC issue

Vorheriges Thema: App to put a whole PHP Site in CD/DVD
Nächstes Thema: PHP: inexplicable behaviour of pre- and post-increment operators