mirror of
https://github.com/php/php-src.git
synced 2025-01-22 19:54:13 +08:00
IF --disable-mbstr-enc-trans is used OR mbstring is compiled as shared
extension, these functions are not available.
This commit is contained in:
parent
f9710231fa
commit
02d3e99bf2
@ -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, '\\');
|
||||
|
Loading…
Reference in New Issue
Block a user