|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-05-30 08:01 UTC] alvaro at demogracia dot com
Description:
------------
Not sure if there's a problem with the Windows builds but I'm using php-7.3.5-Win32-VC15-x64 under Windows 10 and the Curl extension doesn't load at all when running PHP via Apache.
It works fine in command-line but not when running as module for Apache/2.4.29 (Win64) with the same php.ini file, which is essentially identical to the one I was using successfully in php-7.3.0-Win32-VC15-x64. I'm not getting error messages of any kind but the extension doesn't show up in phpinfo() and it isn't avaible.
Test script:
---------------
var_dump(PHP_VERSION, defined('CURLOPT_HEADER'), function_exists('curl_setopt'));
Expected result:
----------------
In command-line it prints:
string(5) "7.3.5"
bool(true)
bool(true)
Actual result:
--------------
In Apache it prints:
string(5) "7.3.5"
bool(false)
bool(false)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
You can run the following script from Apache: <?php exec('"C:\\Opt\\PHP\\deplister" "C:\\Opt\\PHP\\ext\\php_curl.dll"', $output); print_r($output); All DLLs should be OK.Array ( [0] => php7ts.dll,OK [1] => libcrypto-1_1-x64.dll,OK [2] => libssl-1_1-x64.dll,OK [3] => WLDAP32.dll,OK [4] => Normaliz.dll,OK [5] => libssh2.dll,OK [6] => nghttp2.dll,OK [7] => KERNEL32.dll,OK [8] => WS2_32.dll,OK [9] => VCRUNTIME140.dll,OK [10] => api-ms-win-crt-stdio-l1-1-0.dll,OK [11] => api-ms-win-crt-string-l1-1-0.dll,OK [12] => api-ms-win-crt-heap-l1-1-0.dll,OK [13] => api-ms-win-crt-convert-l1-1-0.dll,OK [14] => api-ms-win-crt-runtime-l1-1-0.dll,OK [15] => api-ms-win-crt-time-l1-1-0.dll,OK [16] => api-ms-win-crt-utility-l1-1-0.dll,OK [17] => api-ms-win-crt-filesystem-l1-1-0.dll,OK [18] => api-ms-win-crt-environment-l1-1-0.dll,OK )