Improve user experience when extension files not found
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
(Context: User having issues enabling extensions on PHP on Windows: https://www.reddit.com/r/PHPhelp/comments/1mrxepv/trouble_installing_php_composer_and_laravel/ )
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: C:\php\ext\curl (The specified module could not be found), C:\php\ext\php_curl.dll (The specified module could not be found)) in Unknown on line 0
I think it would be helpful if this message mentioned the extension_dir setting explicitly.
eg. something along the lines of "Is extension_dir correct?"
If you don't know that this setting exists, it's not obvious why PHP is looking for extension files in the wrong place.
I think it would also help to move the extension_dir setting directly above the extension= list (if possible) in the php.ini template files. (It is mentioned in the comments above, but those are easy to miss)
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
Beginne damit, den Code zu finden, der die Startup-Warnung der dynamischen Bibliothek ausgibt, sowie die in der Issue genannten php.ini-Vorlagendateien. Prüfe, wie extension_dir und die extension-Einträge dargestellt werden, und verifiziere anschließend, dass die Warnung Benutzer ausdrücklich auf extension_dir verweist und die Vorlage diese Einstellung direkt über der Liste der Erweiterungen platziert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, php
- Bereich
- backend
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100