Skip to content

Cannot run .phar using php #176

Description

@sheikhmishar

DBDiff version

2.0.0

PHP version

8.3

Installation method

PHAR archive

Database

MariaDB

Database version

MySQL 8

Operating system

Ubuntu 24.04

Command run

1. php ./dbdiff.phar --version # error
2. sudo chmod +x ./dbdiff.phar
3. sudo cp ./dbdiff.phar /usr/local/bin/dbdiff
4. dbdiff --version

Expected behaviour

Version XYZ in terminal

Actual behaviour

Shows index.php not found in archive

Warning: include(phar:///home/cdr/dbdiff.phar/index.php): Failed to open stream: phar error: "index.php" is not a file in phar "/home/cdr/dbdiff.phar" in /data_var/dbdiff.phar on line 9

Warning: include(): Failed opening 'phar:///home/cdr/dbdiff.phar/index.php' for inclusion (include_path='phar:///home/cdr/dbdiff.phar:.:/usr/local/lib/php') in /home/cdr/dbdiff.phar on line 9

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmysqlRelated to Mysql

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions