【发布时间】:2016-09-12 06:55:57
【问题描述】:
我在 Windows 10 上运行 PHP 5.6.25 和 Apache 2.4.23,均为 x64。除了php_curl.dll 之外,PHP 附带的所有其他扩展都可以正常工作。 Apache 不断给我'C:/PHP/ext\\php_curl.dll' - %1 is not a valid Win32 application 错误。
我有:
- 确保
extension_dir = "C:/PHP/ext"正确 - 确保文件确实存在
- 确保 PHP 和 dll 的版本相同——它们都来自 windows.php.net 的同一个二进制文件
- 将
C:\PHP和C:\PHP\ext添加到PATH - 确保
libeay32.dll和ssleay32.dll在C:\Windows\System32和C:\Windows\SysWOW64中
我还能做什么!?
【问题讨论】:
-
您是否安装了 Visual C++ Redistributable for Visual Studio 2015?
-
@simon,是的,当然!
-
x64 版本的 PHP 5.6 for Windows 显然被认为是实验性的。如果您更新到 PHP 7 或使用 x86 版本,也许会有所帮助。