Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Oct 22, 2025

This is a bit all over the place, as I was trying to see if we could make the func field of _zend_execute_data constant.

We cannot mainly due to trampolines, closures, and symbol table shenanigans due to $http_response_header, but might as well merge the added const qualifiers in line with some of my other PRs.

Happy to split this into multiple PRs if needed.

@Girgias Girgias marked this pull request as ready for review October 22, 2025 23:38
@Girgias Girgias requested a review from dstogov as a code owner October 22, 2025 23:38
Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

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

I don't see problems, except of changes in API that may require fixes of third-party extensions.

Comment on lines -456 to +458
ZEND_API zend_function *zend_active_function_ex(const zend_execute_data *execute_data);
ZEND_API const zend_function *zend_active_function_ex(const zend_execute_data *execute_data);

static zend_always_inline zend_function *zend_active_function(void)
static zend_always_inline const zend_function *zend_active_function(void)
Copy link
Member

Choose a reason for hiding this comment

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

These changes may affect third-party extensions. Fixes are going to be trivial.

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