From c77ca4c34aae8122cc473e618e737d316a008374 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Fri, 8 Aug 2008 22:07:07 +0000 Subject: MFH: Fix error_handling usage in various extensions --- ext/dom/processinginstruction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/dom/processinginstruction.c') diff --git a/ext/dom/processinginstruction.c b/ext/dom/processinginstruction.c index 9178e8e528..4edb6bc28c 100644 --- a/ext/dom/processinginstruction.c +++ b/ext/dom/processinginstruction.c @@ -57,14 +57,14 @@ PHP_METHOD(domprocessinginstruction, __construct) dom_object *intern; char *name, *value = NULL; int name_len, value_len, name_valid; + 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(), "Os|s", &id, dom_processinginstruction_class_entry, &name, &name_len, &value, &value_len) == FAILURE) { - php_std_error_handling(); return; } - php_std_error_handling(); + zend_restore_error_handling(&error_handling TSRMLS_CC); name_valid = xmlValidateName((xmlChar *) name, 0); if (name_valid != 0) { -- cgit v1.2.1