mlocati / powershell-phpmanager

A PowerShell module to install/update PHP, PHP extensions and Composer on Windows

Home Page:https://www.powershellgallery.com/packages/PhpManager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Timing of version upgrades?

schmidtl4 opened this issue · comments

commented

Running PHP 7.2.18 and just ran the Update-Php command. The response was "False" - presumably indicating no upgrade available? However https://windows.php.net/download/ has the latest version as 7.3.5 (admittedly released yesterday). What is the timing of the PhpManager updates relative to when versions are released?

What's the output of Update-Php when you use the -Verbose option?

commented

VERBOSE: No new version available (latest version is 7.2.18)

Up, I just read your question more carefully: you would like to upgrade from PHP 7.2 to PHP 7.3.

While changing the patch version (eg from 7.2.17 to 7.2.18) is usually safe, changing the minor version (eg from 7.2.whatever to 7.3.whatever) may break some code. Furthermore, additional PHP extensions must be upgraded as well.
For these reasons, PhpManager doesn't allow you to do that with the Update-Php command.

In order to upgrade from 7.2 to 7.3 you can use the Install-Php command with the -Force flag (if you don't specify the -InitialPhpIni flag, the existing php.ini file won't be overwritten).

commented

Ah - good to know. Thanks for the explanation.