`wmic` deprecated and removed in recent Windows versions
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- php
- Ambito
- networking
Direzione di ricerca
Start by reproducing the failure on Windows 11 24H2 and inspect vendor/react/dns/src/Config/Config.php around line 128, where the null warning is reported. Trace how the wmic command is invoked and determine the project-supported behavior when it is unavailable. Done means the reported command failure and resulting warning no longer occur on affected Windows installations.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi there,
While testing our software which uses react/dns v1.13.0 on a fresh Windows Installation (Windows 11 24H2, 26100.2605), I encountered the following error:
PS C:\...> expose
'wmic' is not recognized as an internal or external command, operable program or batch file.
[2024-12-16 11:13:45] production.WARNING: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in phar://....phar/vendor/react/dns/src/Config/Config.php on line 128
This is probably because Microsoft deprecated WMIC a few years ago and removed it in recent Windows 10/11 versions: https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmic
My workaround is manually re-installing WMIC as described here:
https://techcommunity.microsoft.com/blog/windows-itpro-blog/how-to-install-wmic-feature-on-demand-on-windows-11/4189530
Just wanted to give you a heads-up, as this issue might occur more frequently now that WMIC is no longer included by default.
More information
Used reactphp packages:
› composer why react/dns
react/socket v1.16.0 requires react/dns (^1.13)
› composer why react/socket
react/http v1.11.0 requires react/socket (^1.16)
Let me know if I can provide more details!
- Lingua principale
- PHP
- Stelle
- 542
- Fork
- 62
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di reactphp/dns
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Roadmap to reactphp/dns v3 Apertamaintenance
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
help wanted new feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Support extended DNS (EDNS0) Apertahelp wanted new feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 32/100
Tutte le issue di reactphp/dns
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
Admissions heading updates Apertaa11y admissions.uiowa.edu needs grooming SiteImprove best practice
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Save States Menu Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
pluginsGLPI/datainjection#673 ·