From dab726e922e5f7c23595f8a8ff040ab24f72e119 Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Wed, 29 Nov 2023 20:26:11 -0600 Subject: [PATCH 1/5] Provide a "lowest" php-version parameter --- src/configs/php-versions.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/configs/php-versions.json b/src/configs/php-versions.json index aa48bae3..8bb14306 100644 --- a/src/configs/php-versions.json +++ b/src/configs/php-versions.json @@ -1,7 +1,8 @@ { + "lowest": "8.1", "latest": "8.3", "nightly": "8.4", "5.x": "5.6", "7.x": "7.4", "8.x": "8.3" -} \ No newline at end of file +} From 2810265746a6bff07c119e95e5b67d2e6b19e5d4 Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Thu, 30 Nov 2023 09:53:39 -0600 Subject: [PATCH 2/5] Update php.yml --- .github/workflows/php.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e8e39766..75b416f3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -29,7 +29,7 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-22.04, ubuntu-20.04, windows-2019, macos-latest] - php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] + php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', 'lowest'] include: - operating-system: ubuntu-22.04 php-versions: '' @@ -90,4 +90,4 @@ jobs: php -r "if(ini_get('memory_limit')!='-1') {throw new Exception('memory_limit not disabled');}" php -r "if(ini_get('post_max_size')!='256M') {throw new Exception('post_max_size not added');}" php -r "if(ini_get('short_open_tag')!=1) {throw new Exception('short_open_tag not added');}" - php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}" \ No newline at end of file + php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}" From 1a102bc9f2310ca42b3f82cd54c2e42d2a55b53b Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Thu, 7 Dec 2023 09:44:35 -0600 Subject: [PATCH 3/5] Update utils.ts --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index c42b9310..a35fb339 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -59,7 +59,7 @@ export async function getManifestURL(): Promise { */ export async function parseVersion(version: string): Promise { switch (true) { - case /^(latest|nightly|\d+\.x)$/.test(version): + case /^(latest|lowest|nightly|\d+\.x)$/.test(version): return JSON.parse((await fetch.fetch(await getManifestURL()))['data'])[ version ]; From 86b90110cbf3fcee0dcd076778d4bfc6e3e15093 Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Thu, 7 Dec 2023 10:46:39 -0600 Subject: [PATCH 4/5] Update php.yml --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 75b416f3..4f5ea292 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -29,7 +29,7 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-22.04, ubuntu-20.04, windows-2019, macos-latest] - php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', 'lowest'] + php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] include: - operating-system: ubuntu-22.04 php-versions: '' From 93745da97889cefbb532631551b162d19958a2fb Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Thu, 7 Dec 2023 12:23:09 -0600 Subject: [PATCH 5/5] Updated files after npm run build. --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 2d3b8095..e212fbc0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1156,7 +1156,7 @@ async function getManifestURL() { exports.getManifestURL = getManifestURL; async function parseVersion(version) { switch (true) { - case /^(latest|nightly|\d+\.x)$/.test(version): + case /^(latest|lowest|nightly|\d+\.x)$/.test(version): return JSON.parse((await fetch.fetch(await getManifestURL()))['data'])[version]; default: switch (true) {