Skip to content

Conversation

@johnstevenson
Copy link
Member

@johnstevenson johnstevenson commented Sep 13, 2025

On Windows the self-update command requires admin priviledges (if installed by ComposerSetup) and currently uses VBScript to invoke the UAC prompt.

However, VBScript deprecation was announced in 2023 and is slated to be disabled by default in 2027 (but available as an optional Windows feature). It may possibly be removed forever at some time after that.

Sudo for Windows is a recent solution to do the same thing but is currently only available behind a Developer setting.

This PR will use sudo if it is available, falling back to using VBScript. If this is not available I would imagine that the OS will output a message explaining why, as it does if you call sudo without enabling it.

https://learn.microsoft.com/en-us/windows/advanced-settings/sudo/
https://techcommunity.microsoft.com/blog/windows-itpro-blog/vbscript-deprecation-timelines-and-next-steps/4148301

@fadaile
Copy link

fadaile commented Sep 13, 2025

serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary)

@Seldaek Seldaek merged commit bbea8c9 into composer:main Sep 16, 2025
19 of 21 checks passed
@Seldaek
Copy link
Member

Seldaek commented Sep 16, 2025

Thanks!

@johnstevenson johnstevenson deleted the sudo branch September 16, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants