Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install PECL HTTP extension for XAMPP?

I want to install the PHP PECL HTTP extension in my XAMPP environment (OS is Windows). I have attempted to add multiple variations of the php_http.dll extension into my ext directory, and added extension=php_http.dll to the php.ini file. Yet when I go to start the Apache service, it throws some sort of error.

It's pretty clear I'm doing something wrong, however I have no idea what. The last relevant question I could find was 5 years out of date. Does anybody have any idea how to install this?

like image 650
Andy Hall Avatar asked May 28 '15 14:05

Andy Hall


People also ask

How to install PECL extension for PHP?

You have to download the source version and compile it manually (based on https://www.php.net/manual/en/install.pecl.phpize.php), but you will probably get compilation errors. In my case, there were a few minor bugs due to the missing `;` at the end of the return statement.

How do I know if PECL is installed?

To determine if a particular PECL module is installed and enabled, you will want to create a phpinfo page and check for the specific PECL module you are looking to use in your PHP code. For step-by-step instructions on creating and using a phpinfo page, please see our article Viewing PHP Settings Using a phpinfo Page.


1 Answers

You also have to load raphf and propro:

  • http://windows.php.net/downloads/pecl/releases/raphf/1.0.4/
  • http://windows.php.net/downloads/pecl/snaps/propro/1.0.0/

... and iconv, hash and spl.

like image 170
m6w6 Avatar answered Sep 21 '22 20:09

m6w6