opened 04:20PM - 01 Feb 24 UTC
closed 07:25PM - 01 Feb 24 UTC
Bug
OS: Windows
Status: Needs Triage
### Description
Cannot get curl to load at all. Used to have problems with ldap… and openssl, bu they load fine after adding `LoadFile "${MY_PHP_ROOT}/libssl-3-x64.dll"` I think.
## Configuration
php.ini:
```ini
extension=php_curl.dll
[curl]
curl.cainfo = c:\Prog\PHPs\cacert.pem
```
apache httpd.conf:
```ini
##
#BEGIN PHP
Define MY_PHP_ROOT "c:/Prog/PHPs/PHP83"
# Load libraries that might be required for PHP extensions (curl, openssl, ldap)
LoadFile "${MY_PHP_ROOT}/glib-2.dll"
LoadFile "${MY_PHP_ROOT}/gmodule-2.dll"
LoadFile "${MY_PHP_ROOT}/icudt72.dll"
LoadFile "${MY_PHP_ROOT}/icuin72.dll"
LoadFile "${MY_PHP_ROOT}/icuio72.dll"
LoadFile "${MY_PHP_ROOT}/icuuc72.dll"
LoadFile "${MY_PHP_ROOT}/libcrypto-3-x64.dll"
LoadFile "${MY_PHP_ROOT}/libenchant2.dll"
LoadFile "${MY_PHP_ROOT}/libpq.dll"
LoadFile "${MY_PHP_ROOT}/libsasl.dll"
LoadFile "${MY_PHP_ROOT}/libsodium.dll"
LoadFile "${MY_PHP_ROOT}/libsqlite3.dll"
LoadFile "${MY_PHP_ROOT}/libssh2.dll"
LoadFile "${MY_PHP_ROOT}/libssl-3-x64.dll"
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html
LoadModule php_module "${MY_PHP_ROOT}/php8apache2_4.dll"
PHPIniDir "${MY_PHP_ROOT}/apache_ini/"
#END PHP
##
```
## Resulted in this output:
```
[01-Feb-2024 15:56:31 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: c:/Prog/PHPs/PHP83/ext\curl (Nie można odnaleźć określonego modułu), c:/Prog/PHPs/PHP83/ext\php_curl.dll (Nie można odnaleźć określonego modułu)) in Unknown on line 0
[01-Feb-2024 15:56:33 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: c:/Prog/PHPs/PHP83/ext\curl (Nie można odnaleźć określonego modułu), c:/Prog/PHPs/PHP83/ext\php_curl.dll (Nie można odnaleźć określonego modułu)) in Unknown on line 0
```
## But I expected this output instead:
No bugz :) (or a helpful message at least, see separate report: #13302)
### PHP Version
PHP 8.3.2
### Operating System
Windows 10 22H2