MFH; we would see a nasty problem again if it was not fixed...

This commit is contained in:
Moriyoshi Koizumi 2002-10-24 02:56:28 +00:00
parent 9d079e9b3e
commit 73ca375f37

View File

@ -510,13 +510,15 @@ static char *substring_conf(char *start, int len, char quote TSRMLS_DC)
if (start[i] == '\\' && (start[i + 1] == '\\' || (quote && start[i + 1] == quote))) {
*resp++ = start[++i];
} else {
*resp++ = start[i];
#if HAVE_MBSTRING && !defined(COMPILE_DL_MBSTRING)
if (php_mb_encoding_translation(TSRMLS_C)) {
size_t j = php_mb_mbchar_bytes(start+i TSRMLS_CC);
while (j-- > 0) {
*resp++ = start[++i];
*resp++ = start[i++];
}
--i;
} else {
*resp++ = start[i];
}
#endif
}