XMLRPC issue

XMLRPC issue

am 04.03.2010 05:46:24 von Dmitry Ruban

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 = ' encoding="UTF-8"?><Test/>';

echo xmlrpc_decode($xml);

I suspect to get "" 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 "".

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