-
Notifications
You must be signed in to change notification settings - Fork 80
Add Asymmetric Visibility flags #250
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
base: master
Are you sure you want to change the base?
Add Asymmetric Visibility flags #250
Conversation
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.
Can you please also add a test involving these flags?
Added in d04a1d6 |
ast.c
Outdated
@@ -117,6 +117,16 @@ | |||
# define ZEND_ENCAPS_VAR_DOLLAR_CURLY_VAR_VAR (1<<1) | |||
#endif | |||
|
|||
#if PHP_VERSION_ID < 80400 | |||
# define MODIFIER_PUBLIC_SET (1 << 10) |
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.
Seems like in PHP 7.3 ZEND_ACC_PRIVATE
was 1024
: https://github.com/php/php-src/blob/89dc78e0f0c1a4f27b889f232b109a3919ecf478/Zend/zend_compile.h#L214. But for all later versions it was updated to 4
: https://github.com/php/php-src/blob/master/Zend/zend_compile.h#L220C9-L220C25.
Because of that introducing MODIFIER_PUBLIC_SET
for 7.2./7.3 leads to failed tests. Is there a simple way to introduce modifiers from this PR only for PHP8.4+?
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.
@nikic seems like setting 0
for the new flags (<8.4) fixes this. Can you please give it a look? And run tests one more time? I`ve run 7.3 and 8.4 tests locally, and it seemed fine.
No description provided.