如何在Windows版本的PHP 5.4上使用php_http扩展? [英] How to get php_http extension working on PHP version 5.4 with Windows?

查看:154
本文介绍了如何在Windows版本的PHP 5.4上使用php_http扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如何在Windows上的php 5.4.5上运行php_http扩展吗?

Anyone know how I can get the php_http extension working on php 5.4.5 on windows?

我试图在我的Windows机器上升级到PHP 5.4.5 (运行IIS)。我正在处理的项目依赖于php_http扩展( http:// www .php.net / manual / en / book.http.php

I am trying to upgrade to PHP 5.4.5 on my windows machine (running off IIS). The project I am working on has a dependency of the php_http extension (http://www.php.net/manual/en/book.http.php)

不幸的是5.4似乎没有可下载的DLL文件。此扩展程序的兼容版本(请参阅 http://php.net/manual/en/http。 install.php了)。通过pecl安装似乎也不适合我,我最终得到这个: https: //bugs.php.net/bug.php?id=58531

Unfortunately there doesn't appear to be a downloadable DLL file anywhere for a 5.4 compatible version of this extension (see http://php.net/manual/en/http.install.php). Installing via pecl doesn't seem to work for me either, I end up getting this: https://bugs.php.net/bug.php?id=58531

有谁知道我可以在哪里获取DLL,或者可以提供给我设置此扩展程序的其他选项?

Does anyone know where I can get a DLL for this, or can provide me with other options for getting this extension set up?

注意:5.3使用链接到此处的DLL工作正常: http://www.php.net/manual/en/http.install.php#109498

Note: 5.3 works fine using the DLL linked to here: http://www.php.net/manual/en/http.install.php#109498

推荐答案

Pierre Joye 提供 Windows版本的各种PECL扩展新版本。如果它不在那里(在写的时候不是)你没有选择,只能得到源(这里)并自己构建。

Pierre Joye provides Windows builds of various PECL extensions for new versions. If it's not there (which at the time of writing it isn't) you have no option but to get the source (here) and build it yourself.

抱歉。

因为 cURL 更容易获得,并且几乎可以做任何事情(如果不是真的一切) HTTP扩展可以做,我建议您考虑将项目迁移到使用cURL。

Being that cURL is much more readily available, and can do pretty much everything (if not actually everything) that the HTTP extension can do, I would suggest that you look at migrating your project towards using cURL instead.

这篇关于如何在Windows版本的PHP 5.4上使用php_http扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆