Skip to content

ext/tidy: Various small refactoring #18774

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

Merged
merged 8 commits into from
Jun 5, 2025
Merged

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Jun 5, 2025

Commits should be reviewed individually

Copy link
Member

@SakiTakamachi SakiTakamachi left a comment

Choose a reason for hiding this comment

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

It looks good to me

Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

Besides David's remark: LGTM

@Girgias Girgias force-pushed the tidy-small-refactoring branch from b390440 to 25b1908 Compare June 5, 2025 18:34
@@ -412,7 +408,7 @@ static void tidy_object_free_storage(zend_object *object)
if (intern->ptdoc) {
intern->ptdoc->ref_count--;

if (intern->ptdoc->ref_count <= 0) {
if (intern->ptdoc->ref_count == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

nice catch, seems a long forgotten change to me

@Girgias Girgias merged commit 19b1173 into php:master Jun 5, 2025
8 of 9 checks passed
@Girgias Girgias deleted the tidy-small-refactoring branch June 5, 2025 18:46
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.

4 participants