]> granicus.if.org Git - php/commitdiff
IF --disable-mbstr-enc-trans is used OR mbstring is compiled as shared
authorfoobar <sniper@php.net>
Sun, 14 Jul 2002 00:27:52 +0000 (00:27 +0000)
committerfoobar <sniper@php.net>
Sun, 14 Jul 2002 00:27:52 +0000 (00:27 +0000)
extension, these functions are not available.

main/rfc1867.c

index 5c52c8ebf0bbb0ef130377bbb5e66ac814872dea..45c770e9505c48b08cdf1b36806e4e111b18e82e 100644 (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, '\\');