Created
August 16, 2018 19:47
-
-
Save biswajitpaul01/d375f5418c3bfc13162cd30d16d34b9b to your computer and use it in GitHub Desktop.
UWAMP PHP Curl Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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