From: Nikita Popov Date: Tue, 10 Nov 2020 10:45:59 +0000 (+0100) Subject: Merge branch 'PHP-7.4' into PHP-8.0 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f1dba8b71246c3708657901a5821a315cb483dd;p=php Merge branch 'PHP-7.4' into PHP-8.0 * PHP-7.4: Add integration test for symfony preloading --- 9f1dba8b71246c3708657901a5821a315cb483dd diff --cc azure/community_job.yml index 164a865528,dc30b30743..d688754bca --- a/azure/community_job.yml +++ b/azure/community_job.yml @@@ -91,15 -82,11 +91,22 @@@ jobs displayName: 'Test Amphp' condition: or(succeeded(), failed()) - script: | + git clone https://github.com/sebastianbergmann/phpunit.git --branch=master --depth=1 + cd phpunit + export USE_ZEND_ALLOC=0 + export USE_TRACKED_ALLOC=1 + export ASAN_OPTIONS=exitcode=139 + php7.3 /usr/bin/composer install --no-progress + php ./phpunit + if [ $? -gt 128 ]; then + exit 1 + fi + displayName: 'Test PHPUnit' + php7.3 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress + cd symfony_demo + export USE_ZEND_ALLOC=0 + export USE_TRACKED_ALLOC=1 + sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php + php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php + displayName: 'Symfony Preloading' condition: or(succeeded(), failed())