summaryrefslogtreecommitdiff
path: root/ext/dom/cdatasection.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/cdatasection.c')
-rw-r--r--ext/dom/cdatasection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/cdatasection.c b/ext/dom/cdatasection.c
index 7ba228d39f..8ed7e17e67 100644
--- a/ext/dom/cdatasection.c
+++ b/ext/dom/cdatasection.c
@@ -29,6 +29,7 @@
/* {{{ arginfo */
+static
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_cdatasection_construct, 0, 0, 1)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO();
@@ -59,7 +60,6 @@ PHP_METHOD(domcdatasection, __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(), "Os", &id, dom_cdatasection_class_entry, &value, &value_len) == FAILURE) {
- zend_restore_error_handling(&error_handling TSRMLS_CC);
return;
}
@@ -73,7 +73,7 @@ PHP_METHOD(domcdatasection, __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);
}