[php-src] Issue #20106: 8.5 MSVC compilation error on `ext/intl`

From: Date: Wed, 08 Oct 2025 12:58:38 +0000
Subject: [php-src] Issue #20106: 8.5 MSVC compilation error on `ext/intl`
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251022@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20106 Author: nono303 ### Description Hi Trying to compile 8.5 (53b0a955) 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](https://github.com/user-attachments/files/22771308/locale_methods.log) ### PHP Version ```plain 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

« previous php.bugs (#251022) next »