mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #70078: XSL callbacks with nodes as parameter leak memory
This commit is contained in:
commit
dfbeee034a
3 changed files with 55 additions and 1 deletions
|
@ -277,7 +277,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
|
|||
node->parent = nsparent;
|
||||
node->ns = curns;
|
||||
} else {
|
||||
node = xmlDocCopyNodeList(domintern->document->ptr, node);
|
||||
node = xmlDocCopyNode(node, domintern->document->ptr, 1);
|
||||
}
|
||||
|
||||
php_dom_create_object(node, &child, domintern);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue