From: Rob Richards Date: Wed, 9 Feb 2005 11:46:43 +0000 (+0000) Subject: Fixed bug #31878 (Segmentation fault using clone keyword on nodes) X-Git-Tag: RELEASE_0_2_1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08592b38da80aded6d7740dd259874d5cb5b77c2;p=php Fixed bug #31878 (Segmentation fault using clone keyword on nodes) --- diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 7f2b746d00..6226dee5b6 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -933,7 +933,7 @@ void dom_objects_clone(void *object, void **object_clone TSRMLS_DC) clone->document = intern->document; } php_libxml_increment_doc_ref((php_libxml_node_object *)clone, cloned_node->doc TSRMLS_CC); - php_libxml_increment_node_ptr((php_libxml_node_object *)clone, cloned_node, NULL TSRMLS_CC); + php_libxml_increment_node_ptr((php_libxml_node_object *)clone, cloned_node, (void *)clone TSRMLS_CC); } }