From c14338f5a90d81afdac3f8b4811daacda4b47f6e Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 20 Sep 2008 22:06:18 +0000 Subject: [PATCH] - Fixed bug #46067 (Collator methods - Segfault) --- ext/unicode/collator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/unicode/collator.c b/ext/unicode/collator.c index 1535be7ea3..13acaf995c 100644 --- a/ext/unicode/collator.c +++ b/ext/unicode/collator.c @@ -180,10 +180,14 @@ PHP_FUNCTION(collator_create) int collator_name_len; zval *object; UCollator *ucoll; + zend_error_handling error_handling; + + zend_replace_error_handling(EH_THROW, NULL, &error_handling TSRMLS_CC); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &collator_name, &collator_name_len) == FAILURE) { RETURN_FALSE; } + zend_restore_error_handling(&error_handling TSRMLS_CC); if ((object = getThis()) == NULL) { object = return_value; -- 2.50.1