phpunit: unable to use .phar due unsupported signature error

i’m unable to figure out what is causing this. other phar files (composer, php-cs-fixer, …) run fine in this system.

➔ php56 phpunit.phar  --version
PHP Fatal error:  Uncaught exception 'PharException' with message 'phar "/tmp/phpunit.phar" has a unsupported signature' in /tmp/phpunit.phar:21
Stack trace:
#0 /tmp/phpunit.phar(21): Phar::mapPhar('phpunit-5.0.8.p...')
#1 {main}
  thrown in /tmp/phpunit.phar on line 21

and i do not have suhosin extension nor patch present like mentioned in #1694

extensions present:

➔ php -m | grep -Ei 'phar|zip|zlib|bz2|ssl'
bz2
openssl
Phar
zip
zlib

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 27 (5 by maintainers)

Commits related to this issue

Most upvoted comments

some background information, this is the check to make to see if ext/phar lacks the support:

➔ php -r 'print_r(Phar::getSupportedSignatures());'
Array
(
    [0] => MD5
    [1] => SHA-1
    [2] => OpenSSL
)