summaryrefslogtreecommitdiff
path: root/ext/dom/processinginstruction.c
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
committerSVN Migration <svn@php.net>2008-12-03 20:30:45 +0000
commit2876046398950e59c3b3c460e67e6fec7ff2ba3c (patch)
tree33b2b8b4b859960a6446ad19d0ada1c55f9cfcda /ext/dom/processinginstruction.c
parent3fb86b0b9e79e6a3312b694f30ee627e2e1b325c (diff)
downloadphp-git-php-5.3.0alpha2.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_3_0alpha2'.php-5.3.0alpha2
Diffstat (limited to 'ext/dom/processinginstruction.c')
-rw-r--r--ext/dom/processinginstruction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/processinginstruction.c b/ext/dom/processinginstruction.c
index 59d989aa49..153bac94d4 100644
--- a/ext/dom/processinginstruction.c
+++ b/ext/dom/processinginstruction.c
@@ -29,6 +29,7 @@
/* {{{ arginfo */
+static
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_processinginstruction_construct, 0, 0, 1)
ZEND_ARG_INFO(0, name)
ZEND_ARG_INFO(0, value)
@@ -60,7 +61,6 @@ PHP_METHOD(domprocessinginstruction, __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|s", &id, dom_processinginstruction_class_entry, &name, &name_len, &value, &value_len) == FAILURE) {
- zend_restore_error_handling(&error_handling TSRMLS_CC);
return;
}
@@ -81,7 +81,7 @@ PHP_METHOD(domprocessinginstruction, __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);
}