llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
371 stars 21 forks source link

[6.5] Auto-diagnose is not launched with PHAR distribution #357

Closed llaville closed 1 year ago

llaville commented 1 year ago

Bug report category

Summary

Unable to run diagnose or analyser:run commands without database installation first. See Auto-Diagnose feature !

WARNING: this issue affect only PHAR distribution.

Expected behaviour

Be able to run either all commands without database installation => Auto-Diagnose feature

Actual behaviour

Fatal error: Uncaught Symfony\Component\Config\Exception\FileLocatorFileNotFoundException: The file "./config/packages/messenger.php" does not exist (in: "/shared/backups/github/proxy-manager-lts-1.0.3", "./config/set"). in phar:///shared/backups/php/phpcompatinfo-6.5.phar/vendor/symfony/config/FileLocator.php:71

Feature issue

This issue is related to Light Kernel introduced with CompatInfo-DB 4.4, that is not able to detect correctly Project Directory with PHAR versions of CompatInfo

llaville commented 1 year ago

Pre-requis: https://github.com/llaville/php-compatinfo-db/issues/129 should be fixed first !