简体   繁体   English

PHP 启动:无法加载动态库“http”-Windows 10

[英]PHP Startup: Unable to load dynamic library 'http' - Windows 10

I am running PHP 8.0.3 on my windows 10 machine and trying to enable HTTP extension.我在我的 windows 10 机器上运行 PHP 8.0.3并尝试启用 HTTP 扩展。 I have downloaded the HTTP package from PECL HTTP .我已经从PECL HTTP 下载了 HTTP package When I try to start PHP I get the below error.当我尝试启动 PHP 时,出现以下错误。

PHP Warning:  PHP Startup: Unable to load dynamic library 'http' (tried: C:\Php8.0.3\ext\http (The specified module could not be found), C:\Php8.0.3\ext\php_http.dll (The specified module could not be found)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'http' (tried: C:\Php8.0.3\ext\http (The specified module could not be found), C:\Php8.0.3\ext\php_http.dll (The specified module could not be found)) in Unknown on line 0

Not sure what I'm doing wrong here.不知道我在这里做错了什么。 Any help will be appreciated.任何帮助将不胜感激。

One of a few things is happening:正在发生的几件事之一:

  1. The file doesn't exist in the filepath it's being looked for in. Check the location in the error message or该文件在正在查找的文件路径中不存在。请检查错误消息中的位置或
  2. The file exists, but it's permissions are wrong.该文件存在,但它的权限是错误的。

Hint, it's the former;)提示,是前者;)

I did figure it out.我确实想通了。 Windows error was very unhelpful and only found this out after digging through some documentation. Windows 错误非常无用,只有在浏览了一些文档后才发现这一点。

The http extensions relies on the raphf extension, which I didn't have installed. http扩展依赖于我没有安装的raphf扩展。 On Linux, it would alert me to that, but on windows it just throws a generic "couldn't find extension".在 Linux 上,它会提醒我这一点,但在 windows 上,它只会抛出一个通用的“找不到扩展名”。 Probably the same thing for yourself.对自己来说可能也是一样的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM