diff options
-rw-r--r-- | main/rfc1867.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c index 5c52c8ebf0..45c770e950 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -32,7 +32,7 @@ #include "php_variables.h" #include "rfc1867.h" -#if HAVE_MBSTRING +#if HAVE_MBSTRING && MBSTR_ENC_TRANS && !defined(COMPILE_DL_MBSTRING) #include "ext/mbstring/mbstring.h" #endif @@ -459,7 +459,7 @@ static char *substring_conf(char *start, int len, char quote TSRMLS_DC) *resp++ = start[++i]; } else { *resp++ = start[i]; -#if HAVE_MBSTRING +#if HAVE_MBSTRING && MBSTR_ENC_TRANS && !defined(COMPILE_DL_MBSTRING) if (mbstr_is_mb_leadbyte(start+i TSRMLS_CC)) { *resp++ = start[++i]; } @@ -840,7 +840,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) sprintf(lbuf, "%s_name", param); } -#if HAVE_MBSTRING +#if HAVE_MBSTRING && MBSTR_ENC_TRANS && !defined(COMPILE_DL_MBSTRING) s = mbstr_strrchr(filename, '\\' TSRMLS_CC); #else s = strrchr(filename, '\\'); |