[php-src] Issue #13302: Missleading, unhelpfull message in logs when loading curl and openssl
| From: | Eccenux | Date: | Thu, 01 Feb 2024 13:29:03 +0000 |
| Subject: | [php-src] Issue #13302: Missleading, unhelpfull message in logs when loading curl and openssl | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246386@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13302
Author: Eccenux
### Description
Pretty standard PHP 8.3 installation on Windows with Apache 2.4.
I load this extensions:
```ini
extension_dir = "c:/Prog/PHPs/PHP83/ext"
extension=ldap
extension=curl
extension=gd
extension=mbstring
;...
extension=openssl
;...
```
Resulted in this output (after each Apache restart):
```
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library
'ldap' (tried: c:\Prog\PHPs\PHP83\ext\ldap (The specified module could not be found),
c:\Prog\PHPs\PHP83\ext\php_ldap.dll (The specified module could not be found)) in Unknown on line 0
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library
'curl' (tried: c:\Prog\PHPs\PHP83\ext\curl (The specified module could not be found),
c:\Prog\PHPs\PHP83\ext\php_curl.dll (The specified module could not be found)) in Unknown on line 0
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library
'openssl' (tried: c:\Prog\PHPs\PHP83\ext\openssl (The specified module could not be
found), c:\Prog\PHPs\PHP83\ext\php_openssl.dll (The specified module could not be found)) in Unknown
on line 0
```
But I expected this output instead:
```
[01-Feb-2024 12:35:41 UTC] PHP Warning: PHP Startup: Unable to load dynamic library
'ldap' (found c:\Prog\PHPs\PHP83\ext\php_ldap.dll), but was unable to load it due to: X.
```
Note that I'm probably missing some DLL files that cURL needs or something... I think. That is
why the message is misleading. The path 'c:\Prog\PHPs\PHP83\ext' is valid, and the DLL
files of the extensions are all there.
### PHP Version
PHP 8.3.2
### Operating System
Windows 10 22H2