From: Stanislav Malyshev Date: Sun, 2 Dec 2018 20:06:13 +0000 (-0800) Subject: Improve test for bug77022 X-Git-Tag: php-7.0.33~5^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2fba1e2f59c85c038e60a95c2c651d0ae3e8f1cf;p=php Improve test for bug77022 --- diff --git a/ext/phar/tests/bug77022.phpt b/ext/phar/tests/bug77022.phpt index 66bcf66dd4..c78d1bdafd 100644 --- a/ext/phar/tests/bug77022.phpt +++ b/ext/phar/tests/bug77022.phpt @@ -1,7 +1,10 @@ --TEST-- Phar: Bug #77022: PharData always creates new files with mode 0666 --SKIPIF-- - + --FILE-- 'tar', Phar::ZIP => 'zip'] as $mode => $ext) { + clearstatcache(); $phar = new PharData(__DIR__ . '/test77022.' . $ext, null, null, $mode); $phar->addFile($sFile, 'test-file-phar'); $phar->addFromString("test-from-string", 'test-file-phar');