New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failed at mbstring_arginfo.h on Windows(Visual C++) #13789
Comments
mb_trim uses Unicode special character. Some environment(Japanese CP932) VC++ is fail to compile. I found solution, insert Byte Order Mark. However, scope of impact is very big. Hence add @insert-bom block comment.
mb_trim uses Unicode special character. Some environment(Japanese CP932) VC++ is fail to compile. I found solution that insert Byte Order Mark. However, scope of impact is very big. Hence add @insert-bom block comment.
mb_trim uses Unicode special character. Some environment(Japanese CP932) VC++ is fail to compile. I found solution that insert Byte Order Mark. However, scope of impact is very big. Hence add @insert-bom block comment at .stub.php file.
mbstring.stub.php uses Unicode special character. Some environment(Japanese CP932) VC++ is fail to compile. I found solution that insert Byte Order Mark. However, scope of impact is very big. Hence add @insert-bom block comment at .stub.php file.
I would tried to #13811 that include Byte Order Mark. That approach is my environment (CP932) is passed, However this CI (CP1252 with |
Could these special characters converted to escape sequences? Maybe via using |
I'd recommend using the From what I understood, MS cl.exe reads source code (without BOM) using the \uXXXX escaping or BOM should solve the first part of the problem. However, The I don't know how to integrate the flag, though.
It should still work if a use of pragma in another extension is removed (#13814), yet it looks not nice. After all, I don't think the default value for mb_trim functions are appropriate. (see #13815)
It is missed that |
…ndows Probably CP932 environment can't compile. So add /utf-8 flag.
Thanks for the fix! |
Just out of curiosity, can't these special characters be encoded with some combination of |
That will work too, requires modifying the stub generator. |
Description
Build failed on Visual C++. mb_trim uses UTF-8 characters.
My environment is below:
I confirmed can compile below:
Probably, .stub.php is convert to UTF-8 characters, but Visual C++ can not compile.
I think there are multiple ways to fix it.
Reported from Hirokawa san.
PHP Version
master
Operating System
Windows
The text was updated successfully, but these errors were encountered: