Skip to content

mbstring cannot be built on Windows (commit f7e7370) #13932

Closed

Description

@vpalm001

Description

PHP 8.3.5 (to be released) cannot be built on Windows (vs16).
msvc does not allow (optional std c11) variable length arrays.
Breaking commit: f7e7370

Error message:

ext\mbstring\mbstring.c(5887): error C2057: expected constant expression
ext\mbstring\mbstring.c(5887): error C2466: cannot allocate an array of constant size 0
ext\mbstring\mbstring.c(5887): error C2133: 'wchar_buf': unknown size
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\cl.exe"' : return code '0x2'

PHP Version

PHP 8.3.5

Operating System

Windows

Activity

  1. added a commit that references this issue on Apr 10, 2024
    2cfd9df
  2. added a commit that references this issue on Apr 10, 2024
    7e45196
  3. added a commit that references this issue on Oct 7, 2024
    33549cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions