[GH-ISSUE #128] PHP Fatal error: require(): Failed opening required 'phar:///home/drcoeurjoly/DBDiff/dist/dbdiff.phar/../../../vendor/autoload.php' (include_path='phar:///home/drcoeurjoly/DBDiff/dist/dbdiff.phar:.:/usr/share/php') in phar:///home/drco… #91

Open
opened 2026-02-25 21:33:14 +03:00 by kerem · 2 comments
Owner

Originally created by @RCoeurjoly on GitHub (Jan 29, 2022).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/128

There are 2 issues with the same topic, but those solutions did not work for me.

Steps to reproduce.

On a fresh clone.

./build
cd dist
./dbdiff.phar

Originally created by @RCoeurjoly on GitHub (Jan 29, 2022). Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/128 There are 2 issues with the same topic, but those solutions did not work for me. Steps to reproduce. On a fresh clone. `./build` `cd dist` `./dbdiff.phar`
Author
Owner

@xanarry commented on GitHub (Mar 28, 2022):

same problem, have you figure it out?

<!-- gh-comment-id:1080343559 --> @xanarry commented on GitHub (Mar 28, 2022): same problem, have you figure it out?
Author
Owner

@astrobatty commented on GitHub (May 24, 2024):

You should run php composer.phar install in the directory where your dbdiff.phar is located. Also make sure that you have the full path to the composer.phar file. If you followed the official composer documentation, you probably moved the composer.phar to /usr/local/bin/composer. In this case you should run php /usr/local/bin/composer install.

<!-- gh-comment-id:2129881371 --> @astrobatty commented on GitHub (May 24, 2024): You should run `php composer.phar install` in the directory where your `dbdiff.phar` is located. Also make sure that you have the full path to the `composer.phar` file. If you followed the official composer documentation, you probably moved the `composer.phar` to `/usr/local/bin/composer`. In this case you should run `php /usr/local/bin/composer install`.
kerem changed title from [GH-ISSUE #128] PHP Fatal error: require(): Failed opening required 'phar:///home/drcoeurjoly/DBDiff/dist/dbdiff.phar/../../../vendor/autoload.php' (include_path='phar:///home/drcoeurjoly/DBDiff/dist/dbdiff.phar:.:/usr/share/php') in phar:///home/drco… to [GH-ISSUE #128] PHP Fatal error: require(): Failed opening required 'phar:///home/drcoeurjoly/DBDiff/dist/dbdiff.phar/../../../vendor/autoload.php' (include_path='phar:///home/drcoeurjoly/DBDiff/dist/dbdiff.phar:.:/usr/share/php') in phar:///home/drco… 2026-03-07 20:42:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DBDiff#91
No description provided.