summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-07-14 00:27:52 +0000
committerfoobar <sniper@php.net>2002-07-14 00:27:52 +0000
commit02d3e99bf2973a64aa9ec1412c2a4998e1679841 (patch)
treeeb7eca5baef07c1754280b98935f9ed10abdf822 /main
parentf9710231fa32013c9e2c6373699a0af1b32df110 (diff)
downloadphp-git-02d3e99bf2973a64aa9ec1412c2a4998e1679841.tar.gz
IF --disable-mbstr-enc-trans is used OR mbstring is compiled as shared
extension, these functions are not available.
Diffstat (limited to 'main')
-rw-r--r--main/rfc1867.c6
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, '\\');