-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reinstalling or Uninstalling Windows extensions fails #190
Labels
maintainer investigating
This ticket is being investigated by maintainers. Please check with us before contributing PRs etc!
Comments
asgrim
added a commit
to asgrim/pie
that referenced
this issue
Feb 25, 2025
See php#190 for details.
This issue is what currently prevents me from efficiently using PIE efficiently on Windows. It now requires me to have a separate PHP installation to update extensions, which often has me looking back to the documentation or one of my previous MRs (#70) to find the correct command. |
asgrim
added a commit
to asgrim/pie
that referenced
this issue
Feb 27, 2025
See php#190 for details.
asgrim
added a commit
to asgrim/pie
that referenced
this issue
Feb 27, 2025
See php#190 for details.
asgrim
added a commit
to asgrim/pie
that referenced
this issue
Feb 28, 2025
See php#190 for details.
I can confirm that it works, and the new version is used after I restart my Apache service.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
maintainer investigating
This ticket is being investigated by maintainers. Please check with us before contributing PRs etc!
Reinstalling or uninstalling an extension in Windows does not work currently.
This is because when DLL is loaded in Windows, we cannot unload it from PHP in order to free Windows' lock on the file. If you attempt to overwrite or uninstall the DLL in Windows, you will get an unhelpful/cryptic error like:
(this specific error is trying to re-install an ext that is already installed)
After some searching, it seems this is because the DLL is loaded and therefore cannot be "written" whilst loaded. One potential solution here is to relaunch PHP without the extension loaded. I believe Composer has a mechanism to reload without
xdebug
(for performance) so it may be possible to leverage that.The text was updated successfully, but these errors were encountered: