Last Updated: September 09, 2019
·
939
· bassemdy

Wamp v2.2 wrong php_curl extension

I'm not a big fan of development on Windows and using Wamp for multiple reasons one of which is the following unfixed problem which I'm gonna describe in a bit.

So a project I'm working on requires php_curl extension for PHP to be enabled. I'm using Wamp v2.2, PHP 5.3.13 on a Windows 7-64bit machine.

After enabling the extension I get the following error:

Call to undefined function curl_init() in ...

Obviously the extension is enabled (tick next to it), I restarted all services to make sure changes took effect in vain. Later on I found that the current php_curl module bundled with the wamp 2.2 release is not the correct one.

So if you're getting a similar problem download the correct extension from:

http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/

Then replace the original php_curl.dll in

\wamp\bin\php\php5.3.13\ext

with the new php_curl.dll from the zip file. Restart the services, make sure the extension is enabled and you'll be good to go.

Credit:
http://stackoverflow.com/questions/12076641/call-to-undefined-function-curl-init-with-wamp

2 Responses
Add your response

My life was easier when I started using Vagrant

over 1 year ago ·

@apathetic Very true. I was looking into Vagrant and Chef a couple of days ago but didn't get the time to start implementing it in my projects. Thanks for the tip though :)

over 1 year ago ·