From 1c3dc91845252fbe20c1a8cebc7b4096bdcd8b7e Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 14 Apr 2026 11:25:15 +0800 Subject: [PATCH] Fix paths for PostgreSQL library and header file copying on Windows --- src/SPC/builder/windows/library/postgresql_win.php | 8 ++++---- src/globals/test-extensions.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SPC/builder/windows/library/postgresql_win.php b/src/SPC/builder/windows/library/postgresql_win.php index 7f708be69..0b6b01a56 100644 --- a/src/SPC/builder/windows/library/postgresql_win.php +++ b/src/SPC/builder/windows/library/postgresql_win.php @@ -10,9 +10,9 @@ class postgresql_win extends WindowsLibraryBase protected function build(): void { - copy($this->source_dir . '\pgsql\lib\libpq.lib', BUILD_LIB_PATH . '\libpq.lib'); - copy($this->source_dir . '\pgsql\lib\libpgport.lib', BUILD_LIB_PATH . '\libpgport.lib'); - copy($this->source_dir . '\pgsql\lib\libpgcommon.lib', BUILD_LIB_PATH . '\libpgcommon.lib'); + copy($this->source_dir . '\lib\libpq.lib', BUILD_LIB_PATH . '\libpq.lib'); + copy($this->source_dir . '\lib\libpgport.lib', BUILD_LIB_PATH . '\libpgport.lib'); + copy($this->source_dir . '\lib\libpgcommon.lib', BUILD_LIB_PATH . '\libpgcommon.lib'); // create libpq folder in buildroot/includes/libpq if (!file_exists(BUILD_INCLUDE_PATH . '\libpq')) { @@ -21,7 +21,7 @@ protected function build(): void $headerFiles = ['libpq-fe.h', 'postgres_ext.h', 'pg_config_ext.h', 'libpq\libpq-fs.h']; foreach ($headerFiles as $header) { - copy($this->source_dir . '\pgsql\include\\' . $header, BUILD_INCLUDE_PATH . '\\' . $header); + copy($this->source_dir . '\include\\' . $header, BUILD_INCLUDE_PATH . '\\' . $header); } } } diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index cbcecb0ee..c3d8e995d 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -31,7 +31,7 @@ // 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64 // 'ubuntu-24.04-arm', // bin/spc for arm64 'windows-2022', // .\bin\spc.ps1 - 'windows-2025', + // 'windows-2025', ]; // whether enable thread safe @@ -46,12 +46,12 @@ $frankenphp = false; // prefer downloading pre-built packages to speed up the build process -$prefer_pre_built = false; +$prefer_pre_built = true; // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { 'Linux', 'Darwin' => 'decimal', - 'Windows' => 'decimal', + 'Windows' => 'bcmath,brotli,bz2,ctype,curl,dom,exif,fileinfo,filter,ftp,gd,iconv,intl,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_pgsql,pgsql,session,simdjson,simplexml,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,zip,zlib', }; // If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`).