Skip to content

ext/reflection: various cleanups and simplifications (3)#22795

Merged
DanielEScherzer merged 6 commits into
php:masterfrom
DanielEScherzer:reflection-cleanup-202607-r3
Jul 19, 2026
Merged

ext/reflection: various cleanups and simplifications (3)#22795
DanielEScherzer merged 6 commits into
php:masterfrom
DanielEScherzer:reflection-cleanup-202607-r3

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

No description provided.

@Girgias Girgias 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.

Minor nit regarding the printf style format strings, otherwise LGTM.

Comment thread ext/reflection/php_reflection.c Outdated
@DanielEScherzer
DanielEScherzer force-pushed the reflection-cleanup-202607-r3 branch from ed6f01f to 9930244 Compare July 19, 2026 16:04
Use `uint32_t` for values that are really `uint32_t`, like constant module
numbers and the result from `zend_hash_num_elements()`. Use `uint32_t` for
counting up, when values should never be negative. Adjust format specifiers to
use `PRIu32` rather than `%d` for the uint32_t values.
Put the `*` next to the name, rather than the type
Avoid tabs or multiple spaces other than for indentation, remove a leading
newline from `ReflectionProperty::hasHook()`
@DanielEScherzer
DanielEScherzer force-pushed the reflection-cleanup-202607-r3 branch from 9930244 to b043ea3 Compare July 19, 2026 16:51
@DanielEScherzer

Copy link
Copy Markdown
Member Author

Rebased on top of master, merging locally so that commits stay signed

@DanielEScherzer
DanielEScherzer merged commit b043ea3 into php:master Jul 19, 2026
14 of 18 checks passed
@DanielEScherzer
DanielEScherzer deleted the reflection-cleanup-202607-r3 branch July 19, 2026 17:21
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.

2 participants