How to get php_http extension working on PHP version 5.4 with Windows?
Asked Answered
M

3

4

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

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)

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

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

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

Motherofpearl answered 2/8, 2012 at 12:24 Comment(0)
S
1

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.

Sorry.

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.

Scavenge answered 2/8, 2012 at 12:34 Comment(2)
Thanks, yeah I had checked Pierre's listing. Figured it may come down to building myself, cheers.Motherofpearl
+Good answer but php_http is still very handyMilzie
D
3

Internet posts from August 2012, I bear greetings from THE FUTURE.

In the time since this question was asked and answered, a new Windows PECL extension directory appeared. It's more up-to-date than Pierre's, but it only has 2.x releases of pecl_http; anything written for 1.x will need a rewrite (see the new docs). Nonetheless, the new directory looks like your best bet for PHP 5.4 and beyond.

Disclaim answered 9/1, 2014 at 1:54 Comment(0)
S
1

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.

Sorry.

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.

Scavenge answered 2/8, 2012 at 12:34 Comment(2)
Thanks, yeah I had checked Pierre's listing. Figured it may come down to building myself, cheers.Motherofpearl
+Good answer but php_http is still very handyMilzie
E
0

As of this post Dec 2015 there appears to be a new locations for all sorts of Windows compiled pecl and other PHP Extensions.

Its only a couple of weeks after PHP7 was release and there are already PHP7 compatible extensions available here so I have to assume this location is being activley maintained.

Start your search HERE

Ethnomusicology answered 16/12, 2015 at 20:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.