XMLRPC issue

From: Date: Thu, 04 Mar 2010 04:46:24 +0000
Subject: XMLRPC issue
Groups: php.general 
Request: Send a blank email to php-general+get-302531@lists.php.net to get a copy of this message
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

« previous php.general (#302531) next »