diff options
author | Rob Richards <rrichards@php.net> | 2006-05-03 08:43:04 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2006-05-03 08:43:04 +0000 |
commit | f57c75112df5a5a4e94ba623db86b20e99d2811d (patch) | |
tree | 03c296df8db16c96177e9fe6f042dca28402366a /ext/dom/attr.c | |
parent | a34755e9cf08a911e2c8a37046568e5dc44f1a99 (diff) | |
download | php-git-f57c75112df5a5a4e94ba623db86b20e99d2811d.tar.gz |
Fix bug #37277 (cloning Dom Documents or Nodes does not work)
Proper fix for bug #36859
add test
Diffstat (limited to 'ext/dom/attr.c')
-rw-r--r-- | ext/dom/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/attr.c b/ext/dom/attr.c index 0ad33ec200..9defda6273 100644 --- a/ext/dom/attr.c +++ b/ext/dom/attr.c @@ -77,7 +77,7 @@ PHP_METHOD(domattr, __construct) } if (intern != NULL) { - oldnode = (xmlNodePtr)intern->ptr; + oldnode = dom_object_get_node(intern); if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } |