From: foobar Date: Sun, 14 Jul 2002 00:27:52 +0000 (+0000) Subject: IF --disable-mbstr-enc-trans is used OR mbstring is compiled as shared X-Git-Tag: dev~312 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02d3e99bf2973a64aa9ec1412c2a4998e1679841;p=php IF --disable-mbstr-enc-trans is used OR mbstring is compiled as shared extension, these functions are not available. --- 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, '\\');