I've been using WAMP for a long time without any problems with PHP 7.2.4. Today I've updated my PHP to 7.4.19 and it seems the cURL extension is not loading properly, I am getting the curl_init()
error.
php7.4.19
folder, extension=curl
is uncommented, so is the php.ini file in apache/bin folder, which is basically just a link to the same file from the PHP directory phpinfo()
I can clearly see the cURL is not being loaded, if I switch back to 7.2.4 however and refresh the page, cURL loads just fineextension=php_curl.dll
to php.ini as wellThe system PATH is correctly configured. As I mentioned, it works well with older version of PHP, which uses the same system PATH.
System info:
Basically I've tried everything I found online. Do you have any ideas?
This is very dumb of me, but I finally solved it, leaving this answer here in case anyone struggles with the same problem.
I needed to update Apache from 2.4.33 to 2.4.47 . Seems like the.33 version had problems with loading the cURL extension in PHP 7.4 for some reason.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.