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
hi!
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.
Can you try using a stock version of libxml or using the latest version?
I met some issues in the past on Centos because of bad patches applied
to libxml.
Cheers,
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
Hi!
Can you try using a stock version of libxml or using the latest version?
I met some issues in the past on Centos because of bad patches applied
to libxml.
I've built both 2.7.8 and 2.8.0 from source - same result. & is
ignored when parsing with PHP xml extension.
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
Hi Rob,
Does that ring a bell?
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--
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
The only time I saw this was when PHP was built against libxml
2.7.0-2.7.2 as there were some breaking changes in those versions with
entities and SAX. I'll snag a copy of 6.3 and see if I can reproduce.
Rob
Hi Rob,
Does that ring a bell?
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