PhpStorm没有识别安装的pecl_http

时间:2016-04-27 17:48:46

标签: php phpstorm pecl

我已经使用自制程序安装了php 5.6:

brew install php56 --with-pear

我还安装了pecl_http:

sudo pecl install pecl_http-2.5.5

我已经配置了php解释器(请参阅显示配置的图像,以及我的php.ini文件的开头行,显示已经安装了http扩展)。

enter image description here

当我尝试运行我的应用程序时,收到以下错误消息:

enter image description here

Fatal error: Class 'HTTPRequest' not found in ...

解释器找到pecl_http扩展还需要做什么?

1 个答案:

答案 0 :(得分:2)

您的问题与PHPStorm无关。 HttpRequest类由此PECL扩展的 v1 提供。

通过以下方式重新安装:$ pecl install -f pecl_http-1.7.6

您可以在此处找到 v2 的文档: https://mdref.m6w6.name/http

相关问题