From a4d41ecf8b2a6b76124aeb40a72b0af7f8031bd1 Mon Sep 17 00:00:00 2001 From: "Taha Amin Ghafuri [T@G]" <82469904+tahaghafuri@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:51:07 +0330 Subject: [PATCH 1/2] refactor: replace WMIC with PowerShell for CPU architecture detection - Replace deprecated WMIC command with modern PowerShell - Use Get-CimInstance instead of WMIC to access Win32_Processor - Maintain compatibility with existing code by keeping same output format - Improve compatibility with newer Windows versions - No changes to core program logic --- bin/phpsdk_setshell.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/phpsdk_setshell.bat b/bin/phpsdk_setshell.bat index 8c41734..224c7f5 100755 --- a/bin/phpsdk_setshell.bat +++ b/bin/phpsdk_setshell.bat @@ -60,7 +60,7 @@ if NOT "%3"=="" SET TOOLSET=%3 rem check OS arch rem todo: allow user choose host sdk arch (i.e. x64 target can be compiled at x64(native) or x86(cross)) -for /f "usebackq tokens=1*" %%i in (`wmic cpu get Architecture /value /format:table ^| findstr /r "[1234567890][1234567890]*"`) do ( +for /f "usebackq tokens=*" %%i in (`powershell -NoProfile -Command "Get-CimInstance -ClassName Win32_Processor | Select-Object -ExpandProperty Architecture"`) do ( set PHP_SDK_OS_ARCH_NUM=%%i ) From b0cf040a942ecf646dd6225cbdddfffa2215d7d0 Mon Sep 17 00:00:00 2001 From: "Taha Amin Ghafuri [T@G]" <82469904+tahaghafuri@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:00:44 +0330 Subject: [PATCH 2/2] Change to 2.4 dev --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 541dd9e..39901a4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.1-dev +2.4.0-dev