phar-composer icon indicating copy to clipboard operation
phar-composer copied to clipboard

Always add stub (even when no index file is defined)

Open clue opened this issue 11 years ago • 0 comments

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"

clue avatar Mar 12 '14 10:03 clue