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-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-22 12:05:40 +01: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
2018-10-20 23:04:54 +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-17 12:50:24 +02:00
2018-10-15 04:32:30 +02:00
2018-10-13 14:16:33 +02:00
2018-10-15 04:32:30 +02:00
2018-10-14 19:45:12 +02:00
2018-10-25 16:44:24 +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-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-14 19:45:12 +02:00
2018-10-15 04:32:30 +02:00
2018-10-19 00:10:22 +02:00
2018-10-15 04:32:30 +02:00
2018-10-23 14:24:55 +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-24 11:49:44 +03:00
2018-10-14 19:45:12 +02:00
2018-10-23 14:57:03 +02:00
2018-10-15 04:32:30 +02:00
2018-10-17 16:37:09 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-27 17:30:13 +02:00
2018-10-15 04:32:30 +02:00
2018-10-21 12:10:54 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-10-14 12:55:24 +02:00
2018-10-15 04:32:30 +02:00
2018-10-15 04:32:30 +02:00
2018-07-29 13:48:35 -03:00