Phar archive no read and write permissions with symfony filesystem
问题 i have created a cli app which tries to create a file with symfony 3 fileSystem component. All works fine, but if i put the app in a phar archive symfony can't write the file. This is how i created the phar archive: <?php $phar = new Phar('app.phar', 0, 'app.phar'); $phar->buildFromDirectory(dirname(__FILE__) ); $phar->setStub($phar->createDefaultStub('app.php')); The app.php call the symfony filesystem component: <?php .... $this->fileSystem->dumpFile( 'testfile.txt', 'my test content' );