1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00
Files
archived-php-src/ext/xml/tests
Christoph M. Becker 829b0df77b Fix #71592: External entity processing never fails
If the callback set via `xml_set_external_entity_ref_handler()` returns
a falsy value, parsing is supposed to stop and the error number set to
`XML_ERROR_EXTERNAL_ENTITY_HANDLING`.  This is already correctly done
by the libexpat binding, but the libxml2 binding ignores the return
value.  We fix this by calling `xmlStopParser()` which is available as
of libxml 2.1.0[1] (PHP-7.1 requires at least libxml 2.6.11 anyway),
and setting the desired `errNo` ourselves.

[1] <http://xmlsoft.org/news.html>
2018-10-27 17:30:13 +02:00
..
2013-07-10 19:35:18 +02:00
2018-10-14 19:45:12 +02:00
2017-02-03 21:02:52 +01:00
2018-10-14 19:45:12 +02:00
2017-02-03 21:02:52 +01:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2017-02-03 21:02:52 +01:00