mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed an iconv_strrpos() bug that the function doesn't return accurate
position of last occurrence
This commit is contained in:
parent
4d3c4ab45d
commit
006b455c6a
@ -910,6 +910,9 @@ static php_iconv_err_t _php_iconv_strpos(unsigned int *pretval,
|
||||
ndl_buf_left -= GENERIC_SUPERSET_NBYTES;
|
||||
if (ndl_buf_left == 0) {
|
||||
*pretval = match_ofs;
|
||||
ndl_buf_p = ndl_buf;
|
||||
ndl_buf_left = ndl_buf_len;
|
||||
match_ofs = -1;
|
||||
}
|
||||
} else {
|
||||
unsigned int i, j, lim;
|
||||
|
Loading…
Reference in New Issue
Block a user