Skip to content

zend_object_handlers: Replace function-like macros by (inline) functions#22297

Merged
TimWolla merged 1 commit into
php:masterfrom
TimWolla:zend-object-handlers-demacro
Jun 14, 2026
Merged

zend_object_handlers: Replace function-like macros by (inline) functions#22297
TimWolla merged 1 commit into
php:masterfrom
TimWolla:zend-object-handlers-demacro

Conversation

@TimWolla

Copy link
Copy Markdown
Member

zend_free_trampoline() requires access to the globals and thus cannot easily be made an inline function without moving it to a different (less-appropriate) header. Since trampolines should be comparatively rare, having an extra function call here should be okay.

`zend_free_trampoline()` requires access to the globals and thus
cannot easily be made an inline function without moving it to a
different (less-appropriate) header. Since trampolines should be
comparatively rare, having an extra function call here should be okay.

@Girgias Girgias 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.

Looks reasonable to me

@bwoebi bwoebi 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.

Looks good to me

@TimWolla TimWolla merged commit 9516807 into php:master Jun 14, 2026
18 checks passed
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.

3 participants