From bb165503792aad0b0cc4a9ad7c6ea2b923bdca12 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Fri, 31 Mar 2023 01:23:49 +0530 Subject: [PATCH] Add support for relay on PHP 8.3 --- dist/index.js | 4 ++-- src/extensions.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index c3e16c37..cbe34622 100644 --- a/dist/index.js +++ b/dist/index.js @@ -248,7 +248,7 @@ async function addExtensionDarwin(extension_csv, version) { case /.+-.+\/.+@.+/.test(extension): add_script += await utils.parseExtensionSource(extension, ext_prefix); return; - case /^(7\.4|8\.[0-2])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): + case /^(7\.4|8\.[0-3])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): case /^(5\.[3-6]|7\.[0-4]|8\.[0-2])blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension): case /^couchbase|^event|^gearman$|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension): case /^(5\.[3-6]|7\.[0-4])ioncube$/.test(version_extension): @@ -365,7 +365,7 @@ async function addExtensionLinux(extension_csv, version) { case /.+-.+\/.+@.+/.test(extension): add_script += await utils.parseExtensionSource(extension, ext_prefix); return; - case /^(7\.4|8\.[0-2])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): + case /^(7\.4|8\.[0-3])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): case /^(5\.[3-6]|7\.[0-4]|8\.[0-2])blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension): case /^((5\.[3-6])|(7\.[0-2]))pdo_cubrid$|^((5\.[3-6])|(7\.[0-4]))cubrid$/.test(version_extension): case /^couchbase|^event|^gearman$|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension): diff --git a/src/extensions.ts b/src/extensions.ts index 6978bb91..2cceef2c 100644 --- a/src/extensions.ts +++ b/src/extensions.ts @@ -31,14 +31,14 @@ export async function addExtensionDarwin( case /.+-.+\/.+@.+/.test(extension): add_script += await utils.parseExtensionSource(extension, ext_prefix); return; - // match 7.4relay...8.2relay + // match 7.4relay...8.3relay // match 5.3blackfire...8.2blackfire // match 5.3blackfire-(semver)...8.1blackfire-(semver) // match couchbase, event, geos, pdo_oci, oci8, http, pecl_http // match 5.3ioncube...7.4ioncube // match 7.0phalcon3...7.3phalcon3, 7.2phalcon4...7.4phalcon4, and 7.4phalcon5...8.2phalcon5 // match 7.0zephir_parser...8.2zephir_parser - case /^(7\.4|8\.[0-2])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): + case /^(7\.4|8\.[0-3])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): case /^(5\.[3-6]|7\.[0-4]|8\.[0-2])blackfire(-\d+\.\d+\.\d+)?$/.test( version_extension ): @@ -262,7 +262,7 @@ export async function addExtensionLinux( case /.+-.+\/.+@.+/.test(extension): add_script += await utils.parseExtensionSource(extension, ext_prefix); return; - // match 7.4relay...8.2relay + // match 7.4relay...8.3relay // match 5.3blackfire...8.2blackfire // match 5.3blackfire-(semver)...8.1blackfire-(semver) // match 5.3pdo_cubrid...7.2php_cubrid, 5.3cubrid...7.4cubrid @@ -270,7 +270,7 @@ export async function addExtensionLinux( // match 5.3ioncube...7.4ioncube // match 7.0phalcon3...7.3phalcon3, 7.2phalcon4...7.4phalcon4, 7.4phalcon5...8.2phalcon5 // match 7.0zephir_parser...8.2zephir_parser - case /^(7\.4|8\.[0-2])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): + case /^(7\.4|8\.[0-3])relay(-v?\d+\.\d+\.\d+)?$/.test(version_extension): case /^(5\.[3-6]|7\.[0-4]|8\.[0-2])blackfire(-\d+\.\d+\.\d+)?$/.test( version_extension ):