Skip to content

Instantly share code, notes, and snippets.

@biswajitpaul01
Created August 16, 2018 19:47
Show Gist options
  • Save biswajitpaul01/d375f5418c3bfc13162cd30d16d34b9b to your computer and use it in GitHub Desktop.
Save biswajitpaul01/d375f5418c3bfc13162cd30d16d34b9b to your computer and use it in GitHub Desktop.
UWAMP PHP Curl Setup
I had the same problem, but it only manifested when running PHP through Apache. In CLI it was fine - cURL was shown in phpinfo().
The solution was to replace several files in Apache's bin directory:
libeay32.dll
ssleay32.dll
libssh2.dll
nghttp2.dll
When PHP is run through Apache, its bin directory probably takes precedence over system %PATH% variable and therefore PHP's curl extension uses libraries from Apache, resulting in version mismatch (Apache's libraries seem to be older than required).
It should also be noted, that this behavior started (afaik) with PHP 7.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment