Skip to content

Deprecate disabling report_memleaks INI directive #19481

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 1 commit into from
Aug 16, 2025

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Aug 14, 2025

@alexandre-daubois alexandre-daubois force-pushed the report-memleaks-deprec branch 2 times, most recently from 70f33af to d6fdf2f Compare August 14, 2025 12:52
@alexandre-daubois alexandre-daubois marked this pull request as ready for review August 14, 2025 13:25
@alexandre-daubois alexandre-daubois changed the title Deprecate report_memleaks INI directive Deprecate disabling report_memleaks INI directive Aug 14, 2025
@@ -537,6 +537,7 @@ ignore_repeated_errors = Off
; https://php.net/ignore-repeated-source
ignore_repeated_source = Off

; DEPRECATED: This INI setting is deprecated and will be removed in PHP 9.0.
Copy link
Member

Choose a reason for hiding this comment

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

This formatting is inconsistent with the other deprecated options, please unify.

I also wonder if there still is value in having this option readily presented in the example INI files. It's deprecated and only affects a debug build. Perhaps we can just remove this entire block for improved DX? If we want to keep it, the INI should be commented, though (to make sure it uses the built-in default).

Copy link
Member Author

@alexandre-daubois alexandre-daubois Aug 14, 2025

Choose a reason for hiding this comment

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

I'd say it should be kept. It costs nothing and this will avoid making exceptions for certain settings. Maybe it could also be easier for maintainers when upmerging.

Copy link
Member

Choose a reason for hiding this comment

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

I agree with Tim

@TimWolla TimWolla requested review from Girgias and a team August 14, 2025 19:39
@DanielEScherzer DanielEScherzer requested a review from bukka August 15, 2025 20:40
Copy link
Member

@edorian edorian left a comment

Choose a reason for hiding this comment

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

RM wise: 👍 to merge this during beta, once the technical details are approved by others

@TimWolla
Copy link
Member

Given the approvals and no other comments on #19481 (comment) I'm going ahead with merging. Should we decide to remove the INI from the example config, we can still do in a follow-up.

@TimWolla TimWolla merged commit a84a82e into php:master Aug 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants