gpt4 book ai didi

php - 带有 PHP 7.1 的 Symfony 3 给定 ICU 版本的国际扩展

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:40:33 27 4
gpt4 key购买 nike

我已经安装了 Symfony 3.2.6。当我在浏览器中检查/config.php 时,我收到一条消息:

intl ICU version installed on your system is outdated (57.1) and does not match the ICU data bundled with Symfony (58.2) To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.

首先尝试像此处描述的那样更新 ICU 扩展 Update ICU extension within xampp?我从 PECL 下载了合适的包 http://site.icu-project.org/download/58复制到 apache/bin 文件夹,重新启动 apache,但 PHP 加载旧的 57.1 ICU 版本。

然后我尝试更新 php_intl.dll ftom https://pecl.php.net/package/intl但是我没有找到任何适合 php 7 的包。

在 php 7 中升级 ICU lib 是否有适当的方法?

最佳答案

这是一个非常讨厌的问题。如果没有较新的兼容 PHP 版本,并且由于更新 intl 扩展并没有解决问题,我想您必须使用自定义 ICU 版本编译 PHP:

可以在此处查看 ICU 版本:http://source.icu-project.org/repos/icu/icu/tags/

Check out
cd source
./configure --prefix=$(pwd)/../build (sets a custom install dir)
make (build)
make install (install to "build" dir)

现在 ICU 已构建,您需要运行 PHP 的“配置”脚本并将其指向构建目录:

./configure ... --enable-intl --with-icu-dir=/path/to/icu/build

关于php - 带有 PHP 7.1 的 Symfony 3 给定 ICU 版本的国际扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43040258/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com