Skip to content

Follow-up per-extension child initialization hooks - #25394

Draft
arnaud-lb wants to merge 2 commits into
php:masterfrom
arnaud-lb:followup-cinit
Draft

arnaud-lb wants to merge 2 commits into
php:masterfrom
arnaud-lb:followup-cinit

Conversation

@arnaud-lb

Copy link
Copy Markdown
Member

Follow-up GH-24647:

  • Use named initialization in all zend_module_entry header / trailer macros
  • Define PHP_CINIT / PHP_CINIT_FUNCTION consistently with other similar macros

 * Use named initialization in all zend_module_entry header / trailer macros
 * Define PHP_CINIT / PHP_CINIT_FUNCTION consistently with other similar macros
@arnaud-lb

Copy link
Copy Markdown
Member Author

cc @TimWolla @kairosci

Comment thread Zend/zend_modules.h Outdated
#define NO_MODULE_GLOBALS 0, NULL, NULL, NULL
#define NO_MODULE_GLOBALS \
.globals_size = 0, \
/* .globals_id_ptr or .globals_ptr = */ NULL, \

@kairosci kairosci Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Could we use a conditional designator here? This leaves one positional initializer in the macros being converted to designated initializers, so it still depends on the struct field order.

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