Windows 上的 Posix 和 intl 扩展
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4741396/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Posix and intl extension on windows
提问by kierzniak
When I installed Symfony2 sandbox and try to check requirements by check.php I had 2 problems. My server don't have posix and intl extensions. I'm using WampServer 2.1e (32 bits) on Windows 7 32bit so my versions of apache and php are: Apache 2.2.17 VC6 ThreadSafe Php 5.3.5
当我安装 Symfony2 沙箱并尝试通过 check.php 检查需求时,我遇到了两个问题。我的服务器没有 posix 和 intl 扩展。我在 Windows 7 32 位上使用 WampServer 2.1e(32 位),所以我的 apache 和 php 版本是:Apache 2.2.17 VC6 ThreadSafe Php 5.3.5
I was trying to apply intl extension from http://windows.php.net/downloads/releases/php-5.3.5-Win32-VC6-x86.zipbut i have weird error in apache log: "Can't find extension in c:/wamp/..." I'm sure that extension is in correct directory and enabled in php.ini.
我试图从http://windows.php.net/downloads/releases/php-5.3.5-Win32-VC6-x86.zip应用 intl 扩展, 但我在 apache 日志中有奇怪的错误:“找不到扩展在 c:/wamp/..." 我确定扩展名在正确的目录中并在 php.ini 中启用。
With posix extension I have bigger problem. I can't find it at all on windows platform. In documentation of php it is said that it should be enabled by default, but it isn't.
使用 posix 扩展我有更大的问题。我在 windows 平台上根本找不到它。在 php 文档中说它应该默认启用,但事实并非如此。
回答by Dmitriy
I'm using XAMPP 1.7.4 with PHP 5.3.5 and i experience the same problems.
我将 XAMPP 1.7.4 与 PHP 5.3.5 一起使用,我遇到了同样的问题。
The problem concerning intlextension i solved this way: i copied files named icu*36.dllfrom php installation folder to C:\Windows
关于intl扩展的问题我是这样解决的:我将名为icu*36.dll的文件从php安装文件夹复制到C:\Windows
Resorurces for intl: http://www.tiv.net/2010/12/php-intl-extension-windows-apache.html
国际资源:http: //www.tiv.net/2010/12/php-intl-extension-windows-apache.html
Talking about the posixissue, i haven't even searched, becase this extension is used to colorize the CLI output and Windows shell isn't able to do it.
谈到posix问题,我什至没有搜索过,因为此扩展程序用于为 CLI 输出着色,而 Windows shell 无法执行此操作。