curl_init error after swapping PHP versions
Posted by: dawgbone98 (---.beanfield.net)
Date: December 01, 2017 06:53PM

I recently used the addons to updated WAMP from 3.0.0 to 3.1.1 and also added php versions 7.1.12 and 7.2.0.

When I switch from PHP 7.0.0 to either of the later versions I get the following error when I make a curl call:

Fatal error: Uncaught Error: Call to undefined function curl_init()

When I change back to 7.0.0 it works fine. After doing some searches there are recommendations to move libssh2.dll, ssleay32.dll, libeay32.dll and php_curl.dll into the apache folder, but those already have symlinks to the file locations (they exist in those locations, I checked).

Options: ReplyQuote
Re: curl_init error after swapping PHP versions
Posted by: Otomatic (Moderator)
Date: December 01, 2017 07:38PM

Hi,

> I get the following error when I make a curl call:
> Fatal error: Uncaught Error: Call to undefined function curl_init()
What do you mean by "a curl call"?
- running a command line script
- running a curl instruction within a web application

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.2.0/7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.