From: Uwe Steinmann Date: Mon, 15 Apr 2002 15:39:10 +0000 (+0000) Subject: - DomNode->replace_node() now returns the node that was replace and X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~647 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de2ef69032b5d9c4dcb050f38634002bf5394108;p=php - DomNode->replace_node() now returns the node that was replace and not the new node - fixes Bug #15949 --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index d2681a0330..8299b7d7c4 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -2014,7 +2014,7 @@ PHP_FUNCTION(domxml_node_replace_node) repnode = xmlReplaceNode(nodep, new_repnode); - DOMXML_RET_OBJ(rv, repnode, &ret); + DOMXML_RET_OBJ(rv, nodep, &ret); } /* }}} */