Skip to content

Commit f419e04

Browse files
committed
Add integration test for symfony preloading
To help catch regressions like the one that occurred in PHP 7.4.12. Closes GH-6414.
1 parent bd2b4a5 commit f419e04

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

azure/community_job.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ jobs:
8181
php vendor/bin/phpunit
8282
displayName: 'Test Amphp'
8383
condition: or(succeeded(), failed())
84+
- script: |
85+
php7.3 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress
86+
cd symfony_demo
87+
export USE_ZEND_ALLOC=0
88+
export USE_TRACKED_ALLOC=1
89+
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
90+
php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
91+
displayName: 'Symfony Preloading'
92+
condition: or(succeeded(), failed())

0 commit comments

Comments
 (0)