IF --disable-mbstr-enc-trans is used OR mbstring is compiled as shared

extension, these functions are not available.
This commit is contained in:
foobar 2002-07-14 00:27:52 +00:00
parent f9710231fa
commit 02d3e99bf2

View File

@ -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, '\\');