Skip to content

phar version doesn't work #2274

@xylle

Description

@xylle

Helo,

I have downloaded phinx phar version 0.16 and doesn't work.
The folder is empty, there are no other folders or files except phinx.phar

OS Version : Debian 12 bookworm
php version : 8.2.18

If I try phinx.phar version 0.13.4, its work. version after 0.13.4 doesnt work

If i install phinx with composer in empty project, i have 0.16 version and its works

error message :

./phinx.phar 
PHP Fatal error:  Uncaught UnexpectedValueException: DirectoryIterator::__construct(phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Command/../Resources/): Failed to open directory: operation failed in phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Command/DumpCompletionCommand.php:152
Stack trace:
#0 phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Command/DumpCompletionCommand.php(152): DirectoryIterator->__construct()
#1 phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Command/DumpCompletionCommand.php(55): Symfony\Component\Console\Command\DumpCompletionCommand->getSupportedShells()
#2 phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Command/Command.php(137): Symfony\Component\Console\Command\DumpCompletionCommand->configure()
#3 phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Application.php(1151): Symfony\Component\Console\Command\Command->__construct()
#4 phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Application.php(1327): Symfony\Component\Console\Application->getDefaultCommands()
#5 phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Application.php(548): Symfony\Component\Console\Application->init()
#6 phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Application.php(534): Symfony\Component\Console\Application->add()
#7 phar:///tmp/phinx/phinx.phar/src/Phinx/Console/PhinxApplication.php(37): Symfony\Component\Console\Application->addCommands()
#8 phar:///tmp/phinx/phinx.phar/app/phinx.php(36): Phinx\Console\PhinxApplication->__construct()
#9 phar:///tmp/phinx/phinx.phar/bin/phinx(26): require('...')
#10 /tmp/phinx/phinx.phar(14): require('...')
#11 {main}
  thrown in phar:///tmp/phinx/phinx.phar/vendor/symfony/console/Command/DumpCompletionCommand.php on line 152

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions