Commit 6edb141c10b for php
commit 6edb141c10bd5220d418aa328196a1931f4ccb10
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Thu Dec 3 11:07:24 2026 +0100
[skip ci] Restore USE_TRACKED_ALLOC=1 in community build
The duration was reduced by other means, and this didn't make a huge difference
anyway. But it does cause shutdown leaks in various tests.
diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml
index b1b4a67164e..ec778755be3 100644
--- a/.github/workflows/test-suite.yml
+++ b/.github/workflows/test-suite.yml
@@ -480,6 +480,7 @@ jobs:
echo "ASAN_OPTIONS=exitcode=139" >> "$GITHUB_ENV"
echo "UBSAN_OPTIONS=print_stacktrace=1" >> "$GITHUB_ENV"
echo "USE_ZEND_ALLOC=0" >> "$GITHUB_ENV"
+ echo "USE_TRACKED_ALLOC=1" >> "$GITHUB_ENV"
echo opcache.jit=tracing >> /etc/php.d/opcache.ini
echo opcache.jit_buffer_size=1G >> /etc/php.d/opcache.ini
echo opcache.jit_max_root_traces=100000 >> /etc/php.d/opcache.ini
@@ -576,8 +577,6 @@ jobs:
if [ -e 'src/Symfony/Component/Console/Tests/Helper/FileInputHelperTest.php' ]; then
php -r '$c = file_get_contents("src/Symfony/Component/Console/Tests/Helper/FileInputHelperTest.php"); $c = str_replace("public function testReadWithPasteDetectionAbortsBeyondMaxBytes()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testReadWithPasteDetectionAbortsBeyondMaxBytes()", $c); file_put_contents("src/Symfony/Component/Console/Tests/Helper/FileInputHelperTest.php", $c);'
fi
- # Breaks with USE_ZEND_ALLOC=0 but without USE_TRACKED_ALLOC=1.
- php -r '$c = file_get_contents("src/Symfony/Component/Messenger/Tests/Command/ConsumeMessagesCommandTest.php"); $c = str_replace("public function testRunWithMemoryLimit()", "#[\\PHPUnit\\Framework\\Attributes\\Group('"'"'skip'"'"')]\n public function testRunWithMemoryLimit()", $c); file_put_contents("src/Symfony/Component/Messenger/Tests/Command/ConsumeMessagesCommandTest.php", $c);'
export SYMFONY_DEPRECATIONS_HELPER=max[total]=999
X=0
for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
@@ -610,7 +609,7 @@ jobs:
cd symfony_demo
git rev-parse HEAD
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
- USE_TRACKED_ALLOC=1 APP_DEBUG=0 php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
+ APP_DEBUG=0 php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
- name: Test Wordpress
if: ${{ !cancelled() }}
run: |