Skip to content

Fix calling conventions in Windows alertable sleep test - #25125

Merged
shivammathur merged 1 commit into
php:PHP-8.4from
shivammathur:fix/windows-x86-apc-callback
Nov 1, 2026
Merged

shivammathur merged 1 commit into
php:PHP-8.4from
shivammathur:fix/windows-x86-apc-callback

Conversation

@shivammathur

@shivammathur shivammathur commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Place __stdcall outside the function-pointer parentheses, where FFI applies it to the function type. The nested placement is ignored and creates a cdecl APC callback, corrupting the Windows dispatcher stack on x86.

@ndossche ndossche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@shivammathur
shivammathur merged commit 4dd9bb4 into php:PHP-8.4 Nov 1, 2026
18 checks passed
shivammathur added a commit that referenced this pull request Nov 1, 2026
* PHP-8.6:
  Fix calling conventions in Windows alertable sleep test (#25125)
kairosci pushed a commit to kairosci/php-src that referenced this pull request Nov 1, 2026
* PHP-8.4:
  Fix calling conventions in Windows alertable sleep test (php#25125)
kairosci pushed a commit to kairosci/php-src that referenced this pull request Nov 1, 2026
* PHP-8.5:
  Fix calling conventions in Windows alertable sleep test (php#25125)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants