Skip to content

Conversation

nielsdos
Copy link
Member

ZEND_FUNC_INFO() can not be used on internal CE's. If preloading makes a CE that's an alias of an internal class, the invalid access happens when setting the FUNC_INFO.

While we could check the class type to be of user code, we can just skip aliases altogether anyway which may be faster.

ZEND_FUNC_INFO() can not be used on internal CE's. If preloading makes a
CE that's an alias of an internal class, the invalid access happens when
setting the FUNC_INFO.

While we could check the class type to be of user code, we can just skip
aliases altogether anyway which may be faster.
@nielsdos nielsdos linked an issue Jun 22, 2025 that may be closed by this pull request
@nielsdos nielsdos marked this pull request as ready for review June 22, 2025 19:23
@nielsdos nielsdos requested a review from dstogov as a code owner June 22, 2025 19:23
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 think this is right solution.

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.

Internal class aliases can break preloading + JIT
2 participants