Skip to content

8.5 MSVC compilation error on ext/intl #20106

@nono303

Description

@nono303

Description

Hi
Trying to compile 8.5 (53b0a95) under MSVC x64 (vs17 & vs18)
🔴 I have errors on ext\intl\locale\locale_methods.cpp:

ext\intl\locale\locale_methods.cpp(525): error C2664: 'void get_icu_value_src_php(char *,zend_execute_data *,zval *)' : impossible de convertir l'argument 1 de 'const char [7]' en 'char *'

✅ adding /Zc:strictStrings- to CFLAGS_BD_EXT_INTL_LOCALE resolve the compilation issue and give a working build (against icu 78.1)

See full cmd line and failing result

PHP Version

PHP 8.5.0-dev (cli) (built: Oct  8 2025 14:47:36) (ZTS MSVC 19.50.35503, untested x64)
Copyright (c) The PHP Group
Zend Engine v4.5.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.5.0-dev, Copyright (c), by Zend Technologies

Operating System

Windows 11 x64

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