Hi,
Is there any reason why we can't use Phar::setSignatureAlgorithm() after
Phar::setStub()?
https://github.com/defuse/php-encryption/pull/139
PHP Fatal error: Uncaught exception 'PharException' with message
'unable to copy stub of old phar to new phar
"/var/www/defuse/php-encryption/dist/defuse-crypto.phar"' in
/var/www/defuse/php-encryption/other/build_phar.php:37
Stack trace:
#0 /var/www/defuse/php-encryption/other/build_phar.php(37):
Phar->setSignatureAlgorithm(16, '-----BEGIN PRIV...')
#1 {main}
thrown in /var/www/defuse/php-encryption/other/build_phar.php on line 37
If there's a reason this shouldn't allowed, could the documentation please
be updated to reflect this decision?
If this is a bug, it's breaking our ability to publish signed a .phar for
defuse/php-encryption
(And if I somehow overlooked something, please let me know.)
Thanks,
Scott Arciszewski
Chief Development Officer
Paragon Initiative Enterprises <https://paragonie.com