Symfony 2:安装并启用 intl 扩展 [英] Symfony 2: Install and enable the intl extension
问题描述
我正在使用 XAMPP for Windows
并决定试用 Symfony 2
.
I'm using XAMPP for Windows
and decided to try out Symfony 2
.
一旦我进入 Symfony Configuration
页面,它就会建议我安装并启用 intl.
As soon as I get to Symfony Configuration
page it recommends me to install and enable intl.
我尝试阅读PEAR's
和PECL's
指南,因为我在这个主题上总共0(开始学习PHP
代码>最近),但没有任何效果.
I tried reading PEAR's
and PECL's
guides, since I'm total 0 on this topic(started learning PHP
recently), but nothing worked.
我在我的 C:\xamp\php\ext
中找到了 php_intl.dll
.php.ini
的 extension_dir=
设置为 "C:\xampp\php\ext"
.我只是在 php.ini
中缺少了 extension=php_intl.dll
,所以我添加了它.
I found php_intl.dll
inside my C:\xamp\php\ext
. The php.ini
's extension_dir=
is set to "C:\xampp\php\ext"
. I was only missing the extension=php_intl.dll
inside php.ini
, so I added it.
不幸的是它没有用,而且 Symfony
一直问我 intl.
Unfortunately it didn't work, and Symfony
keeps asking me for intl.
推荐答案
http://php.net/manual/en/intl.requirements.php
自 PHP 5.3.0 版起,此扩展与 PHP 捆绑在一起.或者,此扩展的 PECL 版本可用于所有PHP 版本高于 5.2.0(推荐 5.2.4+).
This extension is bundled with PHP as of PHP version 5.3.0. Alternatively, the PECL version of this extension may be used with all PHP versions greater than 5.2.0 (5.2.4+ recommended).
另请阅读我对您上面帖子的评论
also read my comment to your post above
这篇关于Symfony 2:安装并启用 intl 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!