Missleading, unhelpfull message in logs when loading curl and openssl
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.1k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere die Startwarnungen unter Windows 10 mit PHP 8.3.2 unter Verwendung der in diesem Issue gezeigten Erweiterungskonfiguration und Pfade. Verfolge die Diagnosemeldungen von PHP beim Laden von Windows-Erweiterungen und sorge dafür, dass das Protokoll zwischen einer fehlenden Erweiterungs-DLL und einem Fehler beim Laden einer ihrer Abhängigkeiten unterscheidet; überprüfe die resultierende Warnung anhand des gemeldeten Szenarios.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- operating-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100