Malus Jan
Malus Jan

Reputation: 2142

Call to undefined function curl_init() in PHP 8.4

I'm using WAMP and PHP 8.4

I got the error: Call to undefined function curl_init()

I activated curl in PHP.ini and also WAMP shows that it's active BUT in phpinfo curl does not exist, means the extension curl not loaded.

The file php_curl.dll exists in the ext folder and the extension folder is well assigned (c:/wamp/bin/php/php8.4.3/ext/)

enter image description here

PHP.ini: extension=curl

PHP.INI

And WAMP:

enter image description here

I also downloaded PHP 8.4 from the php website to validate the php_curl.dll and it was the same as WAMP.

I restarted the apache

This issue is easy to regenerate, install the latest version of WAMP with PHP 8.4, and run a curl_init() command in PHP. You will have this error

Upvotes: -3

Views: 59

Answers (0)

Related Questions