开发者

PHP: xml_parse replaces entities and "?" character

开发者 https://www.devze.com 2022-12-22 11:34 出处:网络
How can I describe something I can\'t quite put my finger on? I have a module for RSS reading \"magpierss\" it uses xml_parse() and after extensive troubleshooting all I can come up with is that it re

How can I describe something I can't quite put my finger on? I have a module for RSS reading "magpierss" it uses xml_parse() and after extensive troubleshooting all I can come up with is that it removes certain entities like "?" character.

I haven't written this module myself but I have traced the code until the part uses xml_parse() and then the output is just replaced.

And to my disappointment this behavior exists on our production server only and not the local server. I have compared both php.ini file to search for any diff开发者_如何转开发erences but couldn't find anything.

Could anyone please direct on where to search exactly, i don't even know which direction to start from.

Thanks


mb_string was enabled on the server and somehow it produces this unexpected behavior with xml_parse()

0

精彩评论

暂无评论...
验证码 换一张
取 消