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
Niels Dossche 1925855c0f Fix bug 69168: DomNode::getNodePath() returns invalid path
Upon freeing libxslt's context, every document which is not the *main*
document will be freed by libxslt. If a node of a document which is not
the main document gets returned to userland, we'd free the node twice:
 - first by the cleanup of the xslt context
 - and then by our own refcounting mechanism.
This was reported in bug 49634, and was fixed by always copying the
node (and later re-fixed in bug 70078).
The original fix is not entirely correct unfortunately because of the
following two main reasons:
 - modifications to the node will only modify the copy, and not the original
 - accesses to the parent, path, ... will not work

This patch fixes it properly by only copying the node if it origins from
a document other than the main document.

Co-authored-by: juha.ikavalko@agentit.fi

Closes GH-10318.
2023-01-19 14:06:41 +01:00
..
2022-10-27 14:42:17 +01:00
2022-09-07 17:41:10 +02:00
2022-10-27 14:42:40 +01:00
2023-01-19 09:06:39 +01:00
2022-10-27 14:42:40 +01:00
2023-01-12 19:57:22 +01:00
2023-01-17 14:16:37 +00:00
2022-12-13 23:48:48 +00:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00
2022-12-16 14:38:09 +01:00
2022-09-06 10:42:34 +01:00
2023-01-19 07:42:13 +03:00
2023-01-16 12:27:33 +01:00
2022-11-13 11:10:10 +01:00
2022-12-18 23:21:30 -07:00
2022-11-30 12:13:36 +01:00
2023-01-18 19:26:03 +01:00
2022-10-19 11:37:30 +02:00
2023-01-16 12:27:33 +01:00
2022-12-19 16:17:02 +01:00
2023-01-16 12:27:33 +01:00
2023-01-12 22:15:31 +00:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00
2023-01-07 03:08:13 +00:00
2022-09-07 17:41:10 +02:00
2023-01-19 09:06:39 +01:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00
2023-01-19 09:06:39 +01:00
2023-01-16 12:27:33 +01:00
2022-10-27 14:42:40 +01:00
2023-01-15 15:43:57 +00:00
2023-01-19 09:06:39 +01:00
2022-09-14 23:55:46 +02:00