[php-src] master: Fix GH-13789: build failed mbstring_arginfo.h when Visual C++ on Windows (#13906)
| From: | tekimen via GitHub | Date: | Sun, 07 Apr 2024 19:43:52 +0000 |
| Subject: | [php-src] master: Fix GH-13789: build failed mbstring_arginfo.h when Visual C++ on Windows (#13906) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127972@lists.php.net to get a copy of this message | ||
Author: tekimen (youkidearitai)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2024-04-07T21:43:46+02:00
Commit: https://github.com/php/php-src/commit/0f1e97957abba02bce1551d7bd046495f57f9d04
Raw diff: https://github.com/php/php-src/commit/0f1e97957abba02bce1551d7bd046495f57f9d04.diff
Fix GH-13789: build failed mbstring_arginfo.h when Visual C++ on Windows (#13906)
Probably CP932 environment can't compile. So add /utf-8 flag.
Changed paths:
M ext/mbstring/config.w32
Diff:
diff --git a/ext/mbstring/config.w32 b/ext/mbstring/config.w32
index b04114e3bfb99..43c8c5fc27765 100644
--- a/ext/mbstring/config.w32
+++ b/ext/mbstring/config.w32
@@ -13,6 +13,8 @@ if (PHP_MBSTRING != "no") {
ADD_FLAG("CFLAGS_MBSTRING", "-Iext/mbstring -Iext/mbstring/libmbfl
-Iext/mbstring/libmbfl/mbfl \
/D HAVE_STRICMP /D MBFL_DLL_EXPORT=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1")
+ ADD_FLAG("CFLAGS_BD_EXT_MBSTRING", "/utf-8")
+
FSO.CopyFile("ext\\mbstring\\libmbfl\\config.h.w32",
"ext\\mbstring\\libmbfl\\config.h", true);