Skip to content

FFI: struct with an enum field passed by value is described to libffi with a void element - #25560

Closed
DPDmancul wants to merge 1 commit into
php:PHP-8.4from
DPDmancul:fix/25558-ffi-enum-in-struct
Closed

DPDmancul wants to merge 1 commit into
php:PHP-8.4from
DPDmancul:fix/25558-ffi-enum-in-struct

Conversation

@DPDmancul

Copy link
Copy Markdown
Contributor

Fixes #25558

@ndossche

Copy link
Copy Markdown
Member

Thanks for your patch!
Please do the following changes to your PR:

  • Target branch PHP-8.4, as it is the lowest supported bugfix branch.
  • Please add a test as a phpt file

@DPDmancul
DPDmancul force-pushed the fix/25558-ffi-enum-in-struct branch from 8d3d45a to d6a64fb Compare November 24, 2026 22:47
@DPDmancul
DPDmancul changed the base branch from master to PHP-8.4 November 24, 2026 22:48

@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!

@@ -0,0 +1,45 @@
--TEST--
Bug #25558 (FFI: struct with an enum field passed by value is described to libffi with a void element)

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.

Bug #XYZ is for the old bugsnet bugtracker (bugs.php.net); whereas GH-XYZ is for github bugs.
You don't need to change this PR, I'll fix it up when I merge

Suggested change
Bug #25558 (FFI: struct with an enum field passed by value is described to libffi with a void element)
GH-25558 (FFI: struct with an enum field passed by value is described to libffi with a void element)

@ndossche ndossche closed this in e9b7b60 Nov 25, 2026
@DPDmancul
DPDmancul deleted the fix/25558-ffi-enum-in-struct branch November 27, 2026 15:01
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.

FFI: struct with an enum field passed by value is described to libffi with a void element

2 participants