Skip to content

Commit 0b2b1d5

Browse files
committed
Fix file paths for SQLSRV
1 parent 820d77b commit 0b2b1d5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/SPC/builder/extension/sqlsrv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function patchBeforeWindowsConfigure(): bool
3636

3737
public function patchBeforeMake(): bool
3838
{
39-
$makefile = SOURCE_PATH . '\php-src\Makefile';
39+
$makefile = SOURCE_PATH . '/php-src/Makefile';
4040
$makeContent = file_get_contents($makefile);
4141
$makeContent = preg_replace('/^(CFLAGS_(?:PDO_)?SQLSRV=.*?)\s+\/W4\b/m', '$1', $makeContent);
4242
$makeContent = preg_replace('/^(CFLAGS_(?:PDO_)?SQLSRV=.*?)\s+\/WX\b/m', '$1', $makeContent);

src/globals/test-extensions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
// 'macos-15', // bin/spc for arm64
2828
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
2929
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30-
// 'ubuntu-24.04', // bin/spc for x86_64
30+
'ubuntu-24.04', // bin/spc for x86_64
3131
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
3232
// 'ubuntu-24.04-arm', // bin/spc for arm64
3333
// 'windows-2022', // .\bin\spc.ps1
34-
'windows-2025',
34+
// 'windows-2025',
3535
];
3636

3737
// whether enable thread safe
@@ -50,7 +50,7 @@
5050

5151
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
5252
$extensions = match (PHP_OS_FAMILY) {
53-
'Linux', 'Darwin' => 'zlib',
53+
'Linux', 'Darwin' => 'sqlsrv,pdo_sqlsrv',
5454
'Windows' => 'amqp,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,ds,exif,ffi,fileinfo,filter,ftp,gd,iconv,igbinary,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,rar,redis,session,shmop,simdjson,simplexml,soap,sockets,sqlite3,sqlsrv,ssh2,sysvshm,tokenizer,xml,xmlreader,xmlwriter,yac,yaml,zip,zlib',
5555
};
5656

@@ -66,7 +66,7 @@
6666

6767
// If you want to test extra libs for extensions, add them below (comma separated, example `libwebp,libavif`). Unnecessary, when $with_suggested_libs is true.
6868
$with_libs = match (PHP_OS_FAMILY) {
69-
'Linux', 'Darwin' => 'libjpeg',
69+
'Linux', 'Darwin' => '',
7070
'Windows' => '',
7171
};
7272

0 commit comments

Comments
 (0)