Skip to content

Commit bedafdc

Browse files
Fix GH-13968: Build failed when with --enable-mbregex on MSVC (#13971)
I added /utf-8 flag in CFLAGS_MBSTRING at config.w32 Advised from Hirokawa-san thanks
1 parent 14cd67a commit bedafdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if (PHP_MBSTRING != "no") {
4646
AC_DEFINE('HAVE_MBREGEX', 1);
4747

4848
/* XXX libonig is only usable as a static library ATM, code change required to link with a DLL. */
49-
ADD_FLAG("CFLAGS_MBSTRING", "/DONIG_EXTERN=extern /DPHP_ONIG_BAD_KOI8_ENTRY=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
49+
ADD_FLAG("CFLAGS_MBSTRING", "/DONIG_EXTERN=extern /DPHP_ONIG_BAD_KOI8_ENTRY=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /utf-8");
5050

5151
ADD_SOURCES("ext/mbstring", "php_mbregex.c", "mbstring");
5252
PHP_INSTALL_HEADERS("ext/mbstring", "php_mbregex.h php_onig_compat.h");

0 commit comments

Comments
 (0)