Skip to content

Commit d6b6789

Browse files
committed
bug #98 Add platform check file to phar (gseidel)
This PR was merged into the main branch. Discussion ---------- Add platform check file to phar If I compile the phar file with `bin/compile` and execute the `docs.phar` file later. I got the error ``` failed to open stream: phar error: "vendor/composer/platform_check.php" is not a file in phar ``` Tested with latest composer version `2.0.12` Commits ------- be6a965 Add platform check file to phar
2 parents 4c36d3a + be6a965 commit d6b6789

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Phar/Compiler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public function compile($pharFile = 'docs.phar')
111111
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_files.php'));
112112
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_real.php'));
113113
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/autoload_static.php'));
114+
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/platform_check.php'));
114115
if (file_exists(__DIR__.'/../../vendor/composer/include_paths.php')) {
115116
$this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/include_paths.php'));
116117
}

0 commit comments

Comments
 (0)