summaryrefslogtreecommitdiff
path: root/ext/dom/entityreference.c
diff options
context:
space:
mode:
authorEtienne Kneuss <colder@php.net>2008-11-19 02:00:53 +0000
committerEtienne Kneuss <colder@php.net>2008-11-19 02:00:53 +0000
commit3919b16f041a50ab279c02c5eabfa0483dbfb0d0 (patch)
tree37e5b1b9e5be276bddc38ce1ac6956f1fe005b2a /ext/dom/entityreference.c
parent202426a1fbff9cbc29bec564ddb29a2972e90e69 (diff)
downloadphp-git-3919b16f041a50ab279c02c5eabfa0483dbfb0d0.tar.gz
MFH: Fix #46241 (stacked error_handlers, error_handling in general)
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;
}