Skip to content

Conversation

@ndossche
Copy link
Member

These arrays are not meant to be modified, mark them as const.
This prevents accidental modification and places the arrays in .rodata.

Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

Looks good changes to me cc @Girgias

@Girgias Girgias merged commit a60c6ee into php:master Jan 15, 2023
@ndossche ndossche deleted the const-arrays-in-functions branch January 15, 2023 14:51
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