summaryrefslogtreecommitdiff
path: root/ext/dom/attr.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2006-05-03 08:43:04 +0000
committerRob Richards <rrichards@php.net>2006-05-03 08:43:04 +0000
commitf57c75112df5a5a4e94ba623db86b20e99d2811d (patch)
tree03c296df8db16c96177e9fe6f042dca28402366a /ext/dom/attr.c
parenta34755e9cf08a911e2c8a37046568e5dc44f1a99 (diff)
downloadphp-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.c2
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);
}