summaryrefslogtreecommitdiff
path: root/ext/dom/entityreference.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/entityreference.c')
-rw-r--r--ext/dom/entityreference.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dom/entityreference.c b/ext/dom/entityreference.c
index cf1e9c7778..592a2a2ddb 100644
--- a/ext/dom/entityreference.c
+++ b/ext/dom/entityreference.c
@@ -58,6 +58,7 @@ PHP_METHOD(domentityreference, __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_entityreference_class_entry, &name, &name_len) == FAILURE) {
+ zend_restore_error_handling(&error_handling TSRMLS_CC);
return;
}