[php-src] master: Merge branch 'PHP-8.6'
| From: | Shivam Mathur | Date: | Sun, 01 Nov 2026 12:59:57 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.6' | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143141@lists.php.net to get a copy of this message | ||
Author: Shivam Mathur (shivammathur)
Date: 2026-11-01T18:29:31+05:30
Commit: https://github.com/php/php-src/commit/467bcc80abd304404353d2a77d76ae59982309e8
Raw diff: https://github.com/php/php-src/commit/467bcc80abd304404353d2a77d76ae59982309e8.diff
Merge branch 'PHP-8.6'
* PHP-8.6:
Fix calling conventions in Windows alertable sleep test (#25125)
Changed paths:
M ext/standard/tests/general_functions/sleep_alertable_win32.phpt
Diff:
diff --git a/ext/standard/tests/general_functions/sleep_alertable_win32.phpt
b/ext/standard/tests/general_functions/sleep_alertable_win32.phpt
index 55da154ccf75..33e08ed844b0 100644
--- a/ext/standard/tests/general_functions/sleep_alertable_win32.phpt
+++ b/ext/standard/tests/general_functions/sleep_alertable_win32.phpt
@@ -19,10 +19,10 @@ $kernel32 = FFI::cdef(<<<C
unsigned long SleepEx(unsigned long milliseconds, int alertable);
C, 'kernel32.dll');
$ffi = FFI::cdef(<<<C
- typedef void ($callconv *PAPCFUNC)(uintptr_t);
- typedef void *($callconv *GetCurrentThread_t)(void);
- typedef unsigned long ($callconv *QueueUserAPC_t)(PAPCFUNC callback, void *thread, uintptr_t
data);
- typedef unsigned long ($callconv *SleepEx_t)(unsigned long milliseconds, int alertable);
+ typedef void $callconv (*PAPCFUNC)(uintptr_t);
+ typedef void *$callconv (*GetCurrentThread_t)(void);
+ typedef unsigned long $callconv (*QueueUserAPC_t)(PAPCFUNC callback, void *thread, uintptr_t
data);
+ typedef unsigned long $callconv (*SleepEx_t)(unsigned long milliseconds, int alertable);
C);
$GetCurrentThread = $ffi->cast('GetCurrentThread_t', $kernel32->GetCurrentThread);
$QueueUserAPC = $ffi->cast('QueueUserAPC_t', $kernel32->QueueUserAPC);