xml ext and & entities
| From: | Stas Malyshev | Date: | Mon, 30 Jul 2012 07:13:17 +0000 |
| Subject: | xml ext and & entities | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-61868@lists.php.net to get a copy of this message | ||
Hi!
I was running PHP tests on my freshly installed CentOS instance and I
noticed that two XML tests were failing: ext/xml/tests/bug35447.phpt and
ext/xml/tests/xml011.phpt. Looks like for some reason XML parser when
parsing something like this: This & that - produces empty string
instead of "&" when parsing &.
Any idea why it could be happening? libxml2 is of version 2.7.8 and in
general it's standard CentOS 6.3, 64-bit. Does not reproduce on Mac
with same PHP and same libxml2 version.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227