Skip to content

Conversation

DanielEScherzer
Copy link
Member

No description provided.

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Thanks! This is an oversight on my end.

case ZEND_ACC_PRIVATE_SET:
add_next_index_stringl(return_value, "private(set)", sizeof("private(set)")-1);
break;
}
Copy link
Member

Choose a reason for hiding this comment

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

Likely needs ZEND_ACC_PUBLIC_SET for public public(set) readonly.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tested that and it just returned public and readonly though, just without the protected(set)

Copy link
Member

Choose a reason for hiding this comment

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

case ZEND_ACC_PUBLIC_SET:
	/* Unreachable */
	break;

as implicit documentation?

Copy link
Member

@iluuu1994 iluuu1994 Sep 4, 2025

Choose a reason for hiding this comment

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

Ah, right. I forgot this is removed at compile time. The flag being absent makes sense for getModifiers, though it's a bit confusing here...

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Looks ok then, I think we have other flags where implementation details leak.

@DanielEScherzer DanielEScherzer merged commit c34558d into php:master Sep 5, 2025
9 checks passed
@DanielEScherzer DanielEScherzer deleted the reflection-asymmetric branch September 5, 2025 06:00
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.

3 participants