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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

6 participants