如何从源文件构建 WINCACHE .DLL?

How does one build WINCACHE .DLL from source files?

我从 the PECL download page 下载了 WINCACHE-1.3.7.4.tgz。打开它我发现许多面向 C 的源文件。在 Linux 中从源代码进行编译 我在 Windows 中完全没有 none 方面的经验(我是 运行 Windows 7)。

PHP.net's WinCache pages 上的说明似乎与从 `.tgz'

中提取的文件不匹配

我查看了建议的问题

但我不知道从哪里开始。

因此,有谁知道我将如何从提供的源构建 WinCache .DLL? (如果可能的话)

你真的需要从源代码构建这个扩展吗? 如果没有,您可以下载预编译的 DLLs here. If yes, you have to follow this tutorial 用于在 Windows 上编译 PHP 扩展。基本上,您必须构建 PHP 并且它还会编译您将启用的扩展。成功编译后,您应该能够找到所需的 dll 并将其与您的 运行 PHP.

一起使用

但另一个问题是你需要它做什么?您使用哪个版本的 PHP?如果 5.5+ 你应该考虑 OPCache 而不是 WinCache。

Since the Zend Opcache extension is now in the core PHP product, the WinCache opcode cache is disabled by default. As of PHP 5.5, the opcode cache portion of WinCache is deprecated, and will be removed in a future release of the WinCache extension.