phar-io / gnupg Goto Github PK
View Code? Open in Web Editor NEWA thin wrapper around the gnupg binary, mimicking the pecl/gnupg api
Home Page: https://phar.io
License: Other
A thin wrapper around the gnupg binary, mimicking the pecl/gnupg api
Home Page: https://phar.io
License: Other
Hi there. Thanks for this library. The use of class aliasing seems a bit non-standard, at least it stood out to me anyway.
Would you accept a PR to change this so that this library has it's own GnupgInterface
, and then two adapters that implement it, the factory chooses between, rather than have the binary fallback implementation pretend to be the PHP one? (Would require a new major release of this package.)
wget -O phive.phar "https://phar.io/releases/phive.phar"
wget -O phive.phar.asc "https://phar.io/releases/phive.phar.asc"
gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79
gpg --verify phive.phar.asc phive.phar
rm phive.phar.asc
chmod +x phive.phar
0.13.2
./phive.phar --no-progress --home ./.phive install --trust-gpg-keys 4AA394086372C20A,31C7E470E2138192,8E730BA25823D8B5,CF1A108D0E7AE720 --force-accept-unsigned
Phive 0.13.2 - Copyright (C) 2015-2020 by Arne Blankerts, Sebastian Heuer and Contributors
Copying phpunit-8.5.2.phar to ./tools/phpunit
Downloading https://squizlabs.github.io/PHP_CodeSniffer/phars/phpcs-3.5.4.phar
Downloading https://squizlabs.github.io/PHP_CodeSniffer/phars/phpcs-3.5.4.phar.asc
Copying phpcs-3.5.4.phar to ./tools/phpcs
Downloading https://github.com/phpstan/phpstan/releases/download/0.12.9/phpstan.phar
Downloading https://github.com/phpstan/phpstan/releases/download/0.12.9/phpstan.phar.asc
Downloading key CF1A108D0E7AE720
Trying to connect to keys.openpgp.org (37.218.245.50)
Downloading https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0xCF1A108D0E7AE720
Successfully downloaded key.
Fingerprint: D326 80D5 957D C711 6BE2 9C14 CF1A 108D 0E7A E720
Ondrej Mirtes <[email protected]>
Created: 2019-12-09
[ERROR] An error occurred while processing your request:
implode(): Invalid arguments passed
#0 src/services/signature/gpg/GnupgVerificationResult.php(27)
phar-io/phive#1 unknown file(0): PharIo\Phive\Cli\Runner->errorHandler()
phar-io/phive#2 src/services/signature/gpg/GnupgVerificationResult.php(27): implode()
phar-io/phive#3 src/services/phar/PharDownloader.php(90): PharIo\Phive\GnupgVerificationResult->getStatusMessage()
phar-io/phive#4 src/services/phar/PharDownloader.php(44): PharIo\Phive\PharDownloader->verifySignature()
phar-io/phive#5 src/services/phar/PharService.php(22): PharIo\Phive\PharDownloader->download()
phar-io/phive#6 src/services/phar/InstallService.php(45): PharIo\Phive\PharService->getPharFromRelease()
phar-io/phive#7 src/commands/install/InstallCommand.php(45): PharIo\Phive\InstallService->execute()
phar-io/phive#8 src/commands/install/InstallCommand.php(37): PharIo\Phive\InstallCommand->installRequestedPhar()
phar-io/phive#9 src/shared/cli/Runner.php(193): PharIo\Phive\InstallCommand->execute()
phar-io/phive#10 src/shared/cli/Runner.php(60): PharIo\Phive\Cli\Runner->execute()
phar-io/phive#11 (313): PharIo\Phive\Cli\Runner->run()
phar-io/phive#12 {main}
Environment: PHP 7.3.17-1+ubuntu18.04.1+deb.sury.org+1
Phive Version: 0.13.2
This should not have happened and is most likely a bug.
Please report it at https://github.com/phar-io/phive/issues, make sure you include
the full output of this error message. Thank you!
After tracing error message output, I think the problematic code snippets are as follows:
And the $this->verificationData['status']
variable may not be array type.
To resolve this issue, I think it should cast the $this->verificationData['status']
variable to array
type before making implode function call.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.