From: Dmitry Ruban on 3 Mar 2010 23:46
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"
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
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.
Prev: PHP: inexplicable behaviour of pre- and post-increment operators
Next: Delayed page display