You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect parsing of latest version.json shows old version as latest #15745
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
I think that the first/outer 'version' always points to the latest release, so we could first get the "current maximum version" from that before checking that the PHP and MySQL versions are compatible from deeper in the "releases" array.
I'd prefer a solution that improves the parsing within phpMyAdmin rather than changing the versions.json file, because there are times we support more than one version.
Yes, I think phpMyAdmin should look at the first version (which should be
the latest), then go through the list of versions to verify that the PHP
and MySQL versions are compatible.
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Activity
williamdes commentedon Jan 4, 2020
@ibennetch our api does not indicate the right latest version
ibennetch commentedon Jan 4, 2020
https://www.phpmyadmin.net/home_page/version.json returns an array (if that's the proper way to refer to it in JSON) of currently supported versions:
{ "date": "2019-12-26", "version": "5.0.0", "releases": [ { "date": "2019-12-26", "php_versions": ">=5.5,<8.0", "version": "4.9.3", "mysql_versions": ">=5.5" }, { "date": "2019-12-26", "php_versions": ">=7.1,<8.0", "version": "5.0.0", "mysql_versions": ">=5.5" } ] }I think that the first/outer 'version' always points to the latest release, so we could first get the "current maximum version" from that before checking that the PHP and MySQL versions are compatible from deeper in the "releases" array.
I'd prefer a solution that improves the parsing within phpMyAdmin rather than changing the versions.json file, because there are times we support more than one version.
[-]latest stable version: 4.9.3[/-][+]Incorrect parsing of latest version.json shows old version as latest[/+]Gaurav-Punjabi commentedon Jan 5, 2020
@ibennetch Are you suggesting that we should parse the JSON in such a way that it considers the highest version ?
ibennetch commentedon Jan 6, 2020
Gaurav-Punjabi commentedon Jan 6, 2020
Got it 👍
Will submit a PR for this soon.
Merge #15754 - Fix #15745 - Version 5.0.1 suggests 4.9.4 as latest st…
Add ChangeLog entry for #15745