diff options
author | Tim Toohey <ttoohey@php.net> | 2017-06-03 00:38:02 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-06-03 00:40:58 +0200 |
commit | d027bc2addb4f12e0030532933a2c85c07cdb293 (patch) | |
tree | ab11b67b886480a5f6b7c76b73177aee5569091a /ext/libxml/php_libxml.h | |
parent | 95c4564f939c916538579ef63602a3cd31941c51 (diff) | |
download | php-git-d027bc2addb4f12e0030532933a2c85c07cdb293.tar.gz |
Fixed bug #69373
xmlNodeSetContentLen() calls xmlFreeNode() on node->children. This
causes problems if there are other references around to those children.
Diffstat (limited to 'ext/libxml/php_libxml.h')
-rw-r--r-- | ext/libxml/php_libxml.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h index 88ab22928b..5021a3d43f 100644 --- a/ext/libxml/php_libxml.h +++ b/ext/libxml/php_libxml.h @@ -100,6 +100,7 @@ PHP_LIBXML_API int php_libxml_decrement_doc_ref(php_libxml_node_object *object); PHP_LIBXML_API xmlNodePtr php_libxml_import_node(zval *object); PHP_LIBXML_API zval *php_libxml_register_export(zend_class_entry *ce, php_libxml_export_node export_function); /* When an explicit freeing of node and children is required */ +PHP_LIBXML_API void php_libxml_node_free_list(xmlNodePtr node); PHP_LIBXML_API void php_libxml_node_free_resource(xmlNodePtr node); /* When object dtor is called as node may still be referenced */ PHP_LIBXML_API void php_libxml_node_decrement_resource(php_libxml_node_object *object); |