1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00
Files
Niels Dossche 0579beb842 Fix incorrect error handling in dom_zvals_to_fragment()
Discovered this pre-existing problem while testing GH-10682.
Note: this problem existed *before* that PR.

* Not all paths throw a hierarchy request error
* xmlFreeNode must be used instead of xmlFree for the fragment to also
  free its children.
* Free up nodes that couldn't be added when xmlAddChild fails.

I unified the error handling code that's exactly the same with a goto to
prevent at least some of such problems in the future.

Closes GH-10981.
2023-04-03 21:21:35 +02:00
..
2021-05-06 12:16:35 +02:00
2023-02-12 21:33:39 -07:00
2021-05-06 12:16:35 +02:00
2021-09-13 12:14:32 +02:00
2022-08-19 18:13:48 +02:00
2021-05-06 12:16:35 +02:00
2021-06-29 11:30:26 +02:00