diff options
Diffstat (limited to 'ext/dom/documentfragment.c')
-rw-r--r-- | ext/dom/documentfragment.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c index cd2adabf74..8be9ed1fcf 100644 --- a/ext/dom/documentfragment.c +++ b/ext/dom/documentfragment.c @@ -28,9 +28,11 @@ #include "php_dom.h" /* {{{ arginfo */ +static ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_documentfragement_construct, 0, 0, 0) ZEND_END_ARG_INFO(); +static ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_documentfragement_appendXML, 0, 0, 1) ZEND_ARG_INFO(0, data) ZEND_END_ARG_INFO(); @@ -60,7 +62,6 @@ PHP_METHOD(domdocumentfragment, __construct) zend_replace_error_handling(EH_THROW, dom_domexception_class_entry, &error_handling TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &id, dom_documentfragment_class_entry) == FAILURE) { - zend_restore_error_handling(&error_handling TSRMLS_CC); return; } @@ -74,7 +75,7 @@ PHP_METHOD(domdocumentfragment, __construct) intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { - oldnode = dom_object_get_node(intern); + oldnode = (xmlNodePtr)intern->ptr; if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } |