[php-src] Issue #13968: Build failed at mbstring_arginfo.h on Windows(Visual C++) with --enable-mbregex
| From: | youkidearitai | Date: | Mon, 15 Apr 2024 13:18:31 +0000 |
| Subject: | [php-src] Issue #13968: Build failed at mbstring_arginfo.h on Windows(Visual C++) with --enable-mbregex | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246761@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13968
Author: youkidearitai
### Description
## Description
Build failed on Visual C++ with --enable-mbregex. mb_trim uses UTF-8 characters.
```
C:\php-sdk\php-src
$ more config.nice.bat
@echo off
cscript /nologo /e:jscript configure.js "--enable-mbstring" "--enable-debug"
"--enable-mbregex" %*
```
Resulted in this output:
```
C:\php-sdk\php-src\ext\mbstring\mbstring_arginfo.h(127): error C2001: 定数が 2
行目に続いています。
C:\php-sdk\php-src\ext\mbstring\mbstring_arginfo.h(127): fatal error C1057:
マクロ展開中に予期せぬ EOF を検出しました。
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe"' : リターン
コード '0x2'
Stop.
```
But I expected behavior is compile complete.
Nearly #13789
### PHP Version
master
### Operating System
Windows