forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Zend type tree #6
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
Closed
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2bab522
Add a test that fails
withinboredom ab38c00
Add scope to class entries
withinboredom 67f8bea
modify grammar
withinboredom 8ddc013
namespaces: add support
withinboredom b4354c5
allow for defining nested classes
withinboredom 179f489
add more tests and fix a memory leak
withinboredom a65ba61
add more tests
withinboredom 8502401
add more tests
withinboredom a18f78e
add reflection support
withinboredom 03e940e
rewrite scopes during opcache compilation
withinboredom 9302221
add tests for visibility
withinboredom 9f5f2a4
handle protected/private lookups in outer classes
withinboredom 8bb387e
handle private/protected types in properties
withinboredom 9ef21d4
do not elide return checks for private/protected inner classes
withinboredom 700684a
do not elide return checks for private/protected inner classes
withinboredom 4fc91b2
add and update tests
withinboredom 64f1bb5
handle instantiation protections
withinboredom f29972a
start keeping track of own nested classes
withinboredom ac364dc
simplify resolution logic
withinboredom a505fe5
keep cased namespace names
withinboredom 68f5063
add alias tests
withinboredom a2e21e4
initial type tree implementation
withinboredom e5f007e
fix jit
withinboredom b8468f7
try to make faster
withinboredom f46e4a8
remove unused function
withinboredom cad7f9d
fix issue
withinboredom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirm consistent error handling for protected classes
In the “protected class” branch (line 1836), a
zend_type_error()
is thrown, but the function does not explicitly return or set thearg
toNULL
. While the thrown exception will likely terminate the current process of instantiation, consider adding a return statement (and clearingarg
similarly to the “private class” branch) to keep logic consistent and avoid partial initialization if an exception is overlooked.📝 Committable suggestion