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 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘