summaryrefslogtreecommitdiff
path: root/ext/dom/documentfragment.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/documentfragment.c')
-rw-r--r--ext/dom/documentfragment.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c
index 0c289565a2..5d9b89764d 100644
--- a/ext/dom/documentfragment.c
+++ b/ext/dom/documentfragment.c
@@ -50,8 +50,6 @@ const zend_function_entry php_dom_documentfragment_class_functions[] = {
/* {{{ proto DOMDocumentFragment::__construct() */
PHP_METHOD(domdocumentfragment, __construct)
{
-
- zval *id = getThis();
xmlNodePtr nodep = NULL, oldnode = NULL;
dom_object *intern;
@@ -66,7 +64,7 @@ PHP_METHOD(domdocumentfragment, __construct)
RETURN_FALSE;
}
- intern = Z_DOMOBJ_P(id);
+ intern = Z_DOMOBJ_P(&EX(This));
oldnode = dom_object_get_node(intern);
if (oldnode != NULL) {
php_libxml_node_free_resource(oldnode );