Skip to content

Fix GH-18639: Internal class aliases can break preloading + JIT #18915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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.

@nielsdos nielsdos closed this in 8e731ca Jun 23, 2025
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