Skip to content

Missleading, unhelpfull message in logs when loading curl and openssl #13302

Open
@Eccenux

Description

@Eccenux

Description

Pretty standard PHP 8.3 installation on Windows with Apache 2.4.

I load this extensions:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions