From: Rob Richards Date: Wed, 9 Feb 2005 11:47:12 +0000 (+0000) Subject: MFH: Fixed bug #31878 (Segmentation fault using clone keyword on nodes) X-Git-Tag: php-5.0.4RC1~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e05a7a90c9ece59dda7661c373942c64c17d5165;p=php MFH: 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 d1b83acaf5..1da45020d1 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -930,7 +930,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); } }