]> granicus.if.org Git - php/commit
Fix #61597: SXE properties may lack attributes and content
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 7 Mar 2020 10:20:06 +0000 (11:20 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 12 Mar 2020 09:52:28 +0000 (10:52 +0100)
commit7c081db885756d7b176a55b90b8746f664d1e042
tree421abd97ba8b8af28312fdde4490f105b5d624f4
parent53797c206a4304e0c322c39cb02abf891429367e
Fix #61597: SXE properties may lack attributes and content

We must not treat a node as string if it has attributes, unless it is
an entity declaration which is always treated as string by simplexml.
NEWS
ext/simplexml/simplexml.c
ext/simplexml/tests/000.phpt
ext/simplexml/tests/009b.phpt
ext/simplexml/tests/bug51615.phpt
ext/simplexml/tests/bug61597.phpt [new file with mode: 0644]