Windows 上的 Posix 和 intl 扩展
当我安装 Symfony2 沙箱并尝试通过 check.php 检查需求时,我遇到了 2 个问题。我的服务器没有 posix 和 intl 扩展。 我在 Windows 7 32 位上使用 WampServer 2.1e(32 位),所以我的 apache 和 php 版本是: Apache 2.2.17 VC6 线程安全 Php 5.3.5
我试图从 http://windows.php.net/downloads/releases/php-5.3.5-Win32-VC6-x86.zip 但我在 apache 日志中有奇怪的错误:“在 c:/wamp/... 中找不到扩展”我确信该扩展位于正确的目录中并在 php.ini 中启用。
使用 posix 扩展我有更大的问题。我在windows平台上根本找不到它。在 php 的文档中,据说应该默认启用它,但事实并非如此。
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
I was trying to apply intl extension from http://windows.php.net/downloads/releases/php-5.3.5-Win32-VC6-x86.zip
but 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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在使用 XAMPP 1.7.4 和 PHP 5.3.5,我遇到了同样的问题。
有关 intl 扩展名的问题我这样解决:我将名为 icu*36.dll 的文件从 php 安装文件夹复制到 C:\Windows
Resorurces for intl: http://www.tiv.net/2010/12/php -intl-extension-windows-apache.html
谈论 posix 问题,我什至没有搜索过,因为这个扩展用于对 CLI 输出进行着色,而 Windows shell 不是能够做到。
I'm using XAMPP 1.7.4 with PHP 5.3.5 and i experience the same problems.
The problem concerning intl extension i solved this way: i copied files named icu*36.dll from php installation folder to C:\Windows
Resorurces for intl: http://www.tiv.net/2010/12/php-intl-extension-windows-apache.html
Talking about the posix issue, i haven't even searched, becase this extension is used to colorize the CLI output and Windows shell isn't able to do it.