phar-composer
phar-composer copied to clipboard
Always add stub (even when no index file is defined)
Currently, the stub will not be added when no main index file is defined. As such, PHP's less versatile default stub will be added, which, among others, does not properly support systems without ext-phar.
Steps to reproduce:
# build a phar with no main file
$ phar-composer build erik-dubbelboer/php-redis-admin:dev-master bad.phar
# execute on a platform without ext-phar
$ php-pharless bad.phar
ERROR: manifest length read was "1553257" should be "35323904"