From aa9b80f15808d36452d0bbac9762905bd9685ac2 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 8 Dec 2022 19:58:40 +0530 Subject: [PATCH] Fix extension support on php 8.2 on windows Add PHP 8.2 support for backfire extension --- dist/index.js | 6 +++--- src/extensions.ts | 12 ++++++------ src/scripts/extensions/add_extensions.ps1 | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0a8b50d3..6111a971 100644 --- a/dist/index.js +++ b/dist/index.js @@ -244,7 +244,7 @@ async function addExtensionDarwin(extension_csv, version) { case /.+-.+\/.+@.+/.test(extension): add_script += await utils.parseExtensionSource(extension, ext_prefix); return; - case /^(5\.[3-6]|7\.[0-4]|8\.[0-1])blackfire(-\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): case /(5\.6|7\.[0-3])phalcon3|7\.[2-4]phalcon4|(7\.4|8\.[0-2])phalcon5/.test(version_extension): @@ -293,7 +293,7 @@ async function addExtensionWindows(extension_csv, version) { case /^none$/.test(ext_name): add_script += '\nDisable-AllShared'; break; - case /^(5\.[3-6]|7\.[0-4]|8\.1)blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension): + case /^(5\.[3-6]|7\.[0-4]|8\.2)blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension): case /^pdo_oci$|^oci8$|^pdo_firebird$/.test(extension): case /^(5\.[3-6]|7\.[0-4])ioncube$/.test(version_extension): case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$|^(7\.4|8\.[0-2])phalcon5$/.test(version_extension): @@ -358,7 +358,7 @@ async function addExtensionLinux(extension_csv, version) { case /.+-.+\/.+@.+/.test(extension): add_script += await utils.parseExtensionSource(extension, ext_prefix); return; - case /^(5\.[3-6]|7\.[0-4]|8\.[0-1])blackfire(-\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): case /(?