PHP 7 curl not being loaded

Pedro picture Pedro · Feb 27, 2017 · Viewed 10.2k times · Source

I have installed in my local computer apache 2.4 with PHP 7.1. I enabled curl in my php.ini (extension=php_curl.dll), but for some reason curl is not being loaded even after i enabled it, i made a phhinfo to check, and nothing, i also made a small script:

function isExtensionLoaded($extension_name){
    return extension_loaded($extension_name);
}

echo isExtensionLoaded('curl');

And nothing, is blank, what it means is not being loaded, is something missing? Im on Windows 10.

Answer

Nick Proto picture Nick Proto · Sep 13, 2017

In my case it worked when I also copied nghttp2.dll to Apache bin directory