summaryrefslogtreecommitdiff
path: root/ext/dom/document.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/document.c')
-rw-r--r--ext/dom/document.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c
index dfa98a5411..d16f1177fd 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -1441,6 +1441,7 @@ PHP_METHOD(domdocument, __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|ss", &id, dom_document_class_entry, &version, &version_len, &encoding, &encoding_len) == FAILURE) {
+ zend_restore_error_handling(&error_handling TSRMLS_CC);
return;
}