[php-src] master: Fix GH-13968: Build failed when with --enable-mbregex on MSVC (#13971)
| From: | tekimen via GitHub | Date: | Tue, 16 Apr 2024 20:33:56 +0000 |
| Subject: | [php-src] master: Fix GH-13968: Build failed when with --enable-mbregex on MSVC (#13971) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-128144@lists.php.net to get a copy of this message | ||
Author: tekimen (youkidearitai)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2024-04-16T22:33:49+02:00
Commit: https://github.com/php/php-src/commit/bedafdcf4a5f51b3d32a1c29ff50006196438491
Raw diff: https://github.com/php/php-src/commit/bedafdcf4a5f51b3d32a1c29ff50006196438491.diff
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
Changed paths:
M ext/mbstring/config.w32
Diff:
diff --git a/ext/mbstring/config.w32 b/ext/mbstring/config.w32
index 43c8c5fc27765..976b6cab16555 100644
--- a/ext/mbstring/config.w32
+++ b/ext/mbstring/config.w32
@@ -46,7 +46,7 @@ if (PHP_MBSTRING != "no") {
AC_DEFINE('HAVE_MBREGEX', 1);
/* XXX libonig is only usable as a static library ATM, code change required to link with a DLL.
*/
- ADD_FLAG("CFLAGS_MBSTRING", "/DONIG_EXTERN=extern /DPHP_ONIG_BAD_KOI8_ENTRY=1
/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
+ ADD_FLAG("CFLAGS_MBSTRING", "/DONIG_EXTERN=extern /DPHP_ONIG_BAD_KOI8_ENTRY=1
/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /utf-8");
ADD_SOURCES("ext/mbstring", "php_mbregex.c", "mbstring");
PHP_INSTALL_HEADERS("ext/mbstring", "php_mbregex.h php_onig_compat.h");