- Fixed bug #46067 (Collator methods - Segfault)

This commit is contained in:
Felipe Pena 2008-09-20 22:06:18 +00:00
parent eb4f3f97bb
commit c14338f5a9

View file

@ -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;