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
..
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2018-10-09 16:04:43 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2008-12-12 04:16:21 +00:00
2018-02-20 21:53:48 +01:00
2013-07-10 19:35:18 +02:00
2018-10-27 17:30:13 +02:00
2016-08-17 01:22:11 +02:00
2018-10-15 04:32:30 +02:00
2016-08-20 12:44:20 +02:00
2018-10-15 04:31:31 +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
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:32:30 +02:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-16 18:47:31 +02:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-14 19:45:12 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00