summaryrefslogtreecommitdiff
path: root/ext/dom/documentfragment.c
diff options
context:
space:
mode:
authorEtienne Kneuss <colder@php.net>2008-08-08 22:07:07 +0000
committerEtienne Kneuss <colder@php.net>2008-08-08 22:07:07 +0000
commitc77ca4c34aae8122cc473e618e737d316a008374 (patch)
tree72ce164119e85207a5ff5717237aacb682daf2e5 /ext/dom/documentfragment.c
parentf9d813df519e50eb94fe09f4d76b12f483ed6b0f (diff)
downloadphp-git-c77ca4c34aae8122cc473e618e737d316a008374.tar.gz
MFH: Fix error_handling usage in various extensions
Diffstat (limited to 'ext/dom/documentfragment.c')
-rw-r--r--ext/dom/documentfragment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c
index acfe2e5f6f..326ae7145c 100644
--- a/ext/dom/documentfragment.c
+++ b/ext/dom/documentfragment.c
@@ -59,14 +59,14 @@ PHP_METHOD(domdocumentfragment, __construct)
zval *id;
xmlNodePtr nodep = NULL, oldnode = NULL;
dom_object *intern;
+ zend_error_handling error_handling;
- php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC);
+ 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) {
- php_std_error_handling();
return;
}
- php_std_error_handling();
+ zend_restore_error_handling(&error_handling TSRMLS_CC);
nodep = xmlNewDocFragment(NULL);
if (!nodep) {