diff options
author | Rob Richards <rrichards@php.net> | 2005-02-09 11:46:43 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2005-02-09 11:46:43 +0000 |
commit | 08592b38da80aded6d7740dd259874d5cb5b77c2 (patch) | |
tree | 4a019dab0a1e981167c287e0b1709e36b7574f11 /ext/dom/php_dom.c | |
parent | 1cdde9e3edf4f3159e0352fa5dbeaf9224eff7cc (diff) | |
download | php-git-08592b38da80aded6d7740dd259874d5cb5b77c2.tar.gz |
Fixed bug #31878 (Segmentation fault using clone keyword on nodes)
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r-- | ext/dom/php_dom.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |