File tree Expand file tree Collapse file tree 7 files changed +64
-3
lines changed Expand file tree Collapse file tree 7 files changed +64
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ if not exist "%SDK_RUNNER%" (
41
41
exit /b 3
42
42
)
43
43
44
- cmd /c %SDK_RUNNER% -t .github\scripts\windows\build_task.bat
44
+ for /f " delims=" %%T in ('call .github\scripts\windows\find-vs-toolset.bat %PHP_BUILD_CRT% ') do set " VS_TOOLSET = %%T "
45
+ echo Got VS Toolset %VS_TOOLSET%
46
+ cmd /c %SDK_RUNNER% -s %VS_TOOLSET% -t .github\scripts\windows\build_task.bat
45
47
if %errorlevel% neq 0 exit /b 3
46
48
47
49
exit /b 0
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+
3
+ setlocal enabledelayedexpansion
4
+
5
+ if " %~1 " == " " (
6
+ echo ERROR: Usage: %~nx0 [vc14^ |vc15^ |vs16^ |vs17]
7
+ exit /b 1
8
+ )
9
+
10
+ set " toolsets_vc14 = 14.0"
11
+ set " toolsets_vc15 = "
12
+ set " toolsets_vs16 = "
13
+ set " toolsets_vs17 = "
14
+
15
+
16
+ for /f " usebackq tokens=*" %%I in (`vswhere.exe -latest -find " VC\Tools\MSVC" `) do set " MSVCDIR = %%I "
17
+
18
+ if not defined MSVCDIR (
19
+ echo ERROR: could not locate VC\Tools\MSVC
20
+ exit /b 1
21
+ )
22
+
23
+ for /f " delims=" %%D in ('dir /b /ad " %MSVCDIR% " ') do (
24
+ for /f " tokens=1,2 delims=." %%A in (" %%D " ) do (
25
+ set " maj = %%A " & set " min = %%B "
26
+ if " !maj! " == " 14" (
27
+ if !min! LEQ 9 (
28
+ set " toolsets_vc14 = %%D "
29
+ ) else if !min! LEQ 19 (
30
+ set " toolsets_vc15 = %%D "
31
+ ) else if !min! LEQ 29 (
32
+ set " toolsets_vs16 = %%D "
33
+ ) else (
34
+ set " toolsets_vs17 = %%D "
35
+ )
36
+ )
37
+ )
38
+ )
39
+
40
+ set " KEY = %~1 "
41
+ set " VAR = toolsets_%KEY% "
42
+ call set " RESULT = %% %VAR% %% "
43
+ if defined RESULT (
44
+ echo %RESULT%
45
+ exit /b 0
46
+ ) else (
47
+ echo ERROR: no toolset found for %KEY%
48
+ exit /b 1
49
+ )
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ if not exist "%SDK_RUNNER%" (
9
9
exit /b 3
10
10
)
11
11
12
- cmd /c %SDK_RUNNER% -t .github\scripts\windows\test_task.bat
12
+ for /f " delims=" %%T in ('call .github\scripts\windows\find-vs-toolset.bat %PHP_BUILD_CRT% ') do set " VS_TOOLSET = %%T "
13
+ cmd /c %SDK_RUNNER% -s %VS_TOOLSET% -t .github\scripts\windows\test_task.bat
13
14
if %errorlevel% neq 0 exit /b 3
14
15
15
16
exit /b 0
Original file line number Diff line number Diff line change 58
58
ubuntu_version : ${{
59
59
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
60
60
|| '22.04' }}
61
- windows_version : ${{ ((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9) && '2022' || '2019' }}
61
+ windows_version : ' 2022'
62
62
skip_laravel : ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
63
63
skip_symfony : ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
64
64
skip_wordpress : ${{ matrix.branch.version[0] == 8 && matrix.branch.version[1] == 1 }}
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ Bug #70258 (Segfault if do_resize fails to allocated memory)
4
4
memory_limit=2M
5
5
--SKIPIF--
6
6
<?php
7
+ if (PHP_OS_FAMILY === 'Windows ' ) {
8
+ die ("xfail fails on Windows Server 2022 and newer. " );
9
+ }
7
10
$ zend_mm_enabled = getenv ("USE_ZEND_ALLOC " );
8
11
if ($ zend_mm_enabled === "0 " ) {
9
12
die ("skip Zend MM disabled " );
Original file line number Diff line number Diff line change 2
2
GH-11189: Exceeding memory limit in zend_hash_do_resize leaves the array in an invalid state (packed array)
3
3
--SKIPIF--
4
4
<?php
5
+ if (PHP_OS_FAMILY === 'Windows ' ) {
6
+ die ("xfail fails on Windows Server 2022 and newer. " );
7
+ }
5
8
if (getenv ("USE_ZEND_ALLOC " ) === "0 " ) die ("skip ZMM is disabled " );
6
9
?>
7
10
--INI--
Original file line number Diff line number Diff line change 2
2
GH-11189: Exceeding memory limit in zend_hash_do_resize leaves the array in an invalid state (not packed array)
3
3
--SKIPIF--
4
4
<?php
5
+ if (PHP_OS_FAMILY === 'Windows ' ) {
6
+ die ("xfail fails on Windows Server 2022 and newer. " );
7
+ }
5
8
if (getenv ("USE_ZEND_ALLOC " ) === "0 " ) die ("skip ZMM is disabled " );
6
9
?>
7
10
--INI--
You can’t perform that action at this time.
0 commit comments