diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0ed808e0..bfec641b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -156,6 +156,8 @@ jobs: tools: pecl, composer extensions: curl, openssl, mbstring ini-values: memory_limit=-1 + env: + phpts: nts - name: "Cache composer packages" id: composer-cache diff --git a/bin/setup-runtime.ps1 b/bin/setup-runtime.ps1 index e9c152dd..d2b5c021 100644 --- a/bin/setup-runtime.ps1 +++ b/bin/setup-runtime.ps1 @@ -51,10 +51,10 @@ if ($action -eq 'add-path') { } # get php 8.1 specific version -$API = (Invoke-WebRequest -Uri "https://www.php.net/releases/index.php?json&version=8.1") | ConvertFrom-Json +$API = (Invoke-WebRequest -Uri "https://www.php.net/releases/index.php?json&version=8.3") | ConvertFrom-Json # php windows download -$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/php-" + $API.version + "-Win32-vs16-x64.zip" +$PHPRuntimeUrl = "https://windows.php.net/downloads/releases/php-" + $API.version + "-nts-Win32-vs16-x64.zip" $ComposerUrl = "https://getcomposer.org/download/latest-stable/composer.phar" # create dir diff --git a/config/env.ini b/config/env.ini index 17b44d90..948521dd 100644 --- a/config/env.ini +++ b/config/env.ini @@ -48,9 +48,9 @@ SPC_SKIP_DOCTOR_CHECK_ITEMS="" [windows] ; php-sdk-binary-tools path -PHP_SDK_PATH=${WORKING_DIR}\php-sdk-binary-tools +PHP_SDK_PATH="${WORKING_DIR}\php-sdk-binary-tools" ; upx executable path -UPX_EXEC=${PKG_ROOT_PATH}\bin\upx.exe +UPX_EXEC="${PKG_ROOT_PATH}\bin\upx.exe" ; phpmicro patches, for more info, see: https://github.com/easysoft/phpmicro/tree/master/patches SPC_MICRO_PATCHES=static_extensions_win32,cli_checks,disable_huge_page,vcruntime140,win32,zend_stream,cli_static diff --git a/src/globals/defines.php b/src/globals/defines.php index c6b12737..956e5a9b 100644 --- a/src/globals/defines.php +++ b/src/globals/defines.php @@ -6,6 +6,8 @@ use ZM\Logger\ConsoleLogger; define('WORKING_DIR', getcwd()); define('ROOT_DIR', dirname(__DIR__, 2)); +putenv('WORKING_DIR=' . WORKING_DIR); +putenv('ROOT_DIR=' . ROOT_DIR); // CLI start time define('START_TIME', microtime(true));