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

"phpunit --self-update" does not work in PHPUnit 4.8.0 #1815

Closed
sebastianbergmann opened this issue Aug 7, 2015 · 1 comment
Closed

"phpunit --self-update" does not work in PHPUnit 4.8.0 #1815

sebastianbergmann opened this issue Aug 7, 2015 · 1 comment
Labels
type/bug Something is broken

Comments

@sebastianbergmann
Copy link
Owner

$ wget https://phar.phpunit.de/phpunit-4.8.0.phar

$ php phpunit-4.8.0.phar --self-update
PHPUnit 4.8.0 by Sebastian Bergmann and contributors.

PHP Warning:  copy(phar://phpunit-4.8.0.phar/ca.pem): failed to open stream: phar error: "ca.pem" is not a file in phar "phpunit-4.8.0.phar" in phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php on line 794
PHP Stack trace:
PHP   1. {main}() /home/sb/phpunit-4.8.0.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /home/sb/phpunit-4.8.0.phar:538
PHP   3. PHPUnit_TextUI_Command->run() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:100
PHP   4. PHPUnit_TextUI_Command->handleArguments() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:110
PHP   5. PHPUnit_TextUI_Command->handleSelfUpdate() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:484
PHP   6. copy() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:794
Updating the PHPUnit PHAR ... PHP Warning:  failed loading cafile stream: `/tmp/ca.pem' in phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php on line 817
PHP Stack trace:
PHP   1. {main}() /home/sb/phpunit-4.8.0.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /home/sb/phpunit-4.8.0.phar:538
PHP   3. PHPUnit_TextUI_Command->run() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:100
PHP   4. PHPUnit_TextUI_Command->handleArguments() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:110
PHP   5. PHPUnit_TextUI_Command->handleSelfUpdate() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:484
PHP   6. file_get_contents() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:817
PHP Warning:  file_get_contents(): Failed to enable crypto in phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php on line 817
PHP Stack trace:
PHP   1. {main}() /home/sb/phpunit-4.8.0.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /home/sb/phpunit-4.8.0.phar:538
PHP   3. PHPUnit_TextUI_Command->run() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:100
PHP   4. PHPUnit_TextUI_Command->handleArguments() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:110
PHP   5. PHPUnit_TextUI_Command->handleSelfUpdate() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:484
PHP   6. file_get_contents() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:817
PHP Warning:  file_get_contents(https://phar.phpunit.de/phpunit.phar): failed to open stream: operation failed in phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php on line 817
PHP Stack trace:
PHP   1. {main}() /home/sb/phpunit-4.8.0.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /home/sb/phpunit-4.8.0.phar:538
PHP   3. PHPUnit_TextUI_Command->run() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:100
PHP   4. PHPUnit_TextUI_Command->handleArguments() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:110
PHP   5. PHPUnit_TextUI_Command->handleSelfUpdate() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:484
PHP   6. file_get_contents() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:817
PHP Warning:  unlink(/tmp/ca.pem): No such file or directory in phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php on line 834
PHP Stack trace:
PHP   1. {main}() /home/sb/phpunit-4.8.0.phar:0
PHP   2. PHPUnit_TextUI_Command::main() /home/sb/phpunit-4.8.0.phar:538
PHP   3. PHPUnit_TextUI_Command->run() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:100
PHP   4. PHPUnit_TextUI_Command->handleArguments() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:110
PHP   5. PHPUnit_TextUI_Command->handleSelfUpdate() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:484
PHP   6. unlink() phar:///home/sb/phpunit-4.8.0.phar/phar/phpunit/TextUI/Command.php:834
 done

internal corruption of phar "/tmp/phpunitRJye0w.phar" (truncated entry)
@sebastianbergmann sebastianbergmann added the type/bug Something is broken label Aug 7, 2015
@sebastianbergmann
Copy link
Owner Author

Somehow the path of the ca.pem seems to have changed inside the PHAR.

PHPUnit 4.7.7

$ wget https://phar.phpunit.de/phpunit-4.7.7.phar

$ phar list -f phpunit-4.7.7.phar|grep pem
|-phar:///home/sb/phpunit-4.7.7.phar/ca.pem

PHPUnit 4.8.0

$ wget https://phar.phpunit.de/phpunit-4.8.0.phar

$ phar list -f phpunit-4.8.0.phar|grep pem
|-phar:///home/sb/phpunit-4.8.0.phar/phar/ca.pem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant