[php-src] PR #19521: Only display `report_memleaks` deprecation message with debug builds

From: Date: Tue, 19 Aug 2025 16:03:46 +0000
Subject: [php-src] PR #19521: Only display `report_memleaks` deprecation message with debug builds
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32834@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19521 Author: alexandre-daubois The deprecation message about report_memleaks is being displayed when PHPT files are executed with PHPUnit. The PhptTestCase runner sets report_memleaks=0. A recent commit (https://github.com/sebastianbergmann/phpunit/commit/0eae11435093a25c88b5269de9481f32b26dbe20) removes the setting. However, it’s been pushed to PHPUnit master and it doesn’t seem to be backported to old versions. You can see that the Symfony CI is a flooded by the deprecation message: https://github.com/symfony/symfony/actions/runs/17072154862/job/48412448854. @nicolas-grekas proposes to disable the deprecation message on release build, the setting being no-op anyway, see https://github.com/php/php-src/pull/19481#issuecomment-3201243226.

« previous php.git-pulls (#32834) next »