diff options
| author | Stanislav Malyshev <stas@php.net> | 2009-12-23 21:41:05 +0000 | 
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2009-12-23 21:41:05 +0000 | 
| commit | 882a89fb227915c4fd1cecb9f13850f90e80020c (patch) | |
| tree | 22a8caa276e2c64615957f901685f6890445765b /ext/intl/grapheme/grapheme_util.c | |
| parent | f0c1cd512f53c787058d40f025bbbed529122309 (diff) | |
| download | php-git-882a89fb227915c4fd1cecb9f13850f90e80020c.tar.gz | |
cleanup some code, improve error handling
Diffstat (limited to 'ext/intl/grapheme/grapheme_util.c')
| -rwxr-xr-x | ext/intl/grapheme/grapheme_util.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/intl/grapheme/grapheme_util.c b/ext/intl/grapheme/grapheme_util.c index 375c695b7d..1978d274a0 100755 --- a/ext/intl/grapheme/grapheme_util.c +++ b/ext/intl/grapheme/grapheme_util.c @@ -169,7 +169,7 @@ grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned c          intl_error_set_code( NULL, status TSRMLS_CC );          /* Set error messages. */ -        intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 1 TSRMLS_CC ); +        intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 0 TSRMLS_CC );          efree( uhaystack );          return -1;      } @@ -202,7 +202,7 @@ grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned c          intl_error_set_code( NULL, status TSRMLS_CC );          /* Set error messages. */ -        intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 1 TSRMLS_CC ); +        intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 0 TSRMLS_CC );          efree( uhaystack );          efree( uneedle );          ubrk_close (bi); @@ -294,7 +294,7 @@ grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned ch  		intl_error_set_code( NULL, status TSRMLS_CC );  		/* Set error messages. */ -		intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 1 TSRMLS_CC ); +		intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 0 TSRMLS_CC );  		efree( uhaystack );  		return -1;  	} @@ -331,7 +331,7 @@ grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned ch  		intl_error_set_code( NULL, status TSRMLS_CC );  		/* Set error messages. */ -		intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 1 TSRMLS_CC ); +		intl_error_set_custom_msg( NULL, "Error converting input string to UTF-16", 0 TSRMLS_CC );  		efree( uhaystack );  		efree( uneedle );  		ubrk_close (bi);  | 
