Skip to content

reflection: pass zend_object* to _class_string() - #23279

Merged
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-08-reflection-minor-refactoring
Aug 15, 2026
Merged

reflection: pass zend_object* to _class_string()#23279
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-08-reflection-minor-refactoring

Conversation

@Girgias

@Girgias Girgias commented Aug 14, 2026

Copy link
Copy Markdown
Member

Rather than a zval

@Girgias

Girgias commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

It might be a good idea in the future to refactor intern->obj to be a zend_object* rather than a zval. This only saves 8 bytes in the struct, but I think it would make the assumptions and logic surrounding this field easier to grasp.

@devnexen

Copy link
Copy Markdown
Member

do you plan to update the reflection_object struct (obj field) as well ? that may simplify things too.

@Girgias

Girgias commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

do you plan to update the reflection_object struct (obj field) as well ? that may simplify things too.

Long term yes, not sure how quickly I'll get to it.

@DanielEScherzer DanielEScherzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@Girgias
Girgias merged commit fdd2f74 into php:master Aug 15, 2026
18 checks passed
@Girgias
Girgias deleted the 2026-08-reflection-minor-refactoring branch August 15, 2026 16: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