dongsicheng5262 2013-12-05 04:42
浏览 53
已采纳

找不到HttpReqeust但我真的安装了pecl_http

I'm use php-fpm on centos, php version is 5.5.6

When I install pecl_http and restart fpm, I get the phpinfo abot pecl_http module:

http

HTTP Support enabled Extension Version 2.0.1

Used Library Compiled Linked libz 1.2.7 1.2.7 libcurl 7.29.0 7.29.0 libevent disabled disabled

Directive Local Value Master Value http.etag.mode crc32b crc32b

propro

Property proxy support enabled Extension version 1.0.0

raphf

Resource and persistent handle factory support enabled Extension version 1.0.4

Persistent handles in this process Provider Ident Used Free

Directive Local Value Master Value raphf.persistent_handle.limit -1 -1

It's look fine that pecl_http are success installed.(I load 3 so lib: http.so propro.so raphf.so) But I always get a HttpRequest or same class HttpMessage class not found error In CLI or Web page.

Please tell me how can find the reason.

  • 写回答

1条回答 默认 最新

  • doudai8083 2014-04-18 11:28
    关注

    Stable pecl_http is now at version 2, which provides http\Client and http\Message, etc: http://devel-m6w6.rhcloud.com/mdref/http

    If you want HttpRequest and HttpMessage, that is v1, which you have to install explicitly:

    $ pecl install pecl_http-1.7.6

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序