From: Dmitry Ruban on
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>&lt;Test/&gt;</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('&lt;','&gt;'), array('&#60;','&#62;'), $xml);

but would like to fix xmlrpc somehow.

Regards,
Dmitry Ruban