Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PharException - Broken signature installing PHPUnit #1694

Closed
dam660 opened this issue Apr 24, 2015 · 3 comments
Closed

PharException - Broken signature installing PHPUnit #1694

dam660 opened this issue Apr 24, 2015 · 3 comments

Comments

@dam660
Copy link

dam660 commented Apr 24, 2015

Hm I can't find any subject talking about my problem..

I try to install PHPUnit (using this process: https://phpunit.de/getting-started.html) on my debian.

But nothing appears on my prompt when I type this:

php phpunit.phar --version

I add a breakpoint after "Phar::mapPhar('phpunit-4.6.4.phar');" on the phpunit.phar, line 17, ant then I got this error on my prompt:

PHP Fatal error: Uncaught exception 'PharException' with message 'phar "/home/root-db/phpunit.phar" has a broken signature' in /home/root-db/phpunit.phar:16
Stack trace:
#0 /home/root-db/phpunit.phar(16): Phar::mapPhar('phpunit-4.6.4.p...')
#1 {main}

thrown in /home/root-db/phpunit.phar on line 16

can you help me with this one?

Thank's in advance!

@sebastianbergmann
Copy link
Owner

Do you have Suhosin enabled? If so, please have a look at https://phpunit.de/manual/current/en/installation.html#installation.phar

@dam660
Copy link
Author

dam660 commented Apr 24, 2015

Hm didn't know that I have Suhosin enabled on this server, this solves my problem.
Really thank you!

@dam660 dam660 closed this as completed Apr 24, 2015
@sebastianbergmann
Copy link
Owner

AFAIK it is enabled by default on Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants