summaryrefslogtreecommitdiff
path: root/ext/dom/comment.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/comment.c')
-rw-r--r--ext/dom/comment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dom/comment.c b/ext/dom/comment.c
index c754a4d7a8..9ec528d8c8 100644
--- a/ext/dom/comment.c
+++ b/ext/dom/comment.c
@@ -56,14 +56,14 @@ PHP_METHOD(domcomment, __construct)
dom_object *intern;
char *value = NULL;
int value_len;
+ 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|s", &id, dom_comment_class_entry, &value, &value_len) == FAILURE) {
- php_std_error_handling();
return;
}
- php_std_error_handling();
+ zend_restore_error_handling(&error_handling TSRMLS_CC);
nodep = xmlNewComment((xmlChar *) value);
if (!nodep) {