Skip to content

Commit 0d3a101

Browse files
author
nono303
committed
disable patch for windows 7 EOL php/php-src#12762
1 parent 5c55192 commit 0d3a101

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

modules/php-src_8.3.patch

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,3 @@
1-
# https://github.com/php/php-src/issues/12762
2-
diff --git "a/Zend/zend_call_stack.c" "b/Zend/zend_call_stack.c"
3-
index 06ee521911..0ac230a0bd 100644
4-
--- "a/Zend/zend_call_stack.c"
5-
+++ "b/Zend/zend_call_stack.c"
6-
@@ -376,7 +376,19 @@ static bool zend_call_stack_get_win32(zend_call_stack *stack)
7-
* v Lower addresses v
8-
*/
9-
10-
- GetCurrentThreadStackLimits(&low_limit, &high_limit);
11-
+ typedef void (WINAPI* FuncT)(PULONG_PTR , PULONG_PTR);
12-
+ HINSTANCE hDLL = LoadLibrary("Kernel32.dll");
13-
+ FuncT GetCurrentThreadStackLimits = (FuncT) GetProcAddress((HMODULE)hDLL, "GetCurrentThreadStackLimits");
14-
+ if (GetCurrentThreadStackLimits) {
15-
+ GetCurrentThreadStackLimits(&low_limit, &high_limit);
16-
+ } else {
17-
+ NT_TIB* tib = (NT_TIB*)NtCurrentTeb();
18-
+ high_limit = (ULONG_PTR)tib->StackBase;
19-
+ MEMORY_BASIC_INFORMATION mbi;
20-
+ if (VirtualQuery(tib->StackLimit, &mbi, sizeof(mbi))) {
21-
+ low_limit = (ULONG_PTR)mbi.AllocationBase;
22-
+ }
23-
+ }
24-
25-
result_size = VirtualQuery((void*)low_limit,
26-
&uncommitted_region, sizeof(uncommitted_region));
271
diff --git "a/main/network.c" "b/main/network.c"
282
index 1ad7e370cc..9cc9de2a2c 100644
293
--- "a/main/network.c"

0 commit comments

Comments
 (0)