Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89800 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16706 invoked from network); 10 Dec 2015 21:37:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2015 21:37:30 -0000 Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain paragonie.com from 209.85.215.45 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.215.45 mail-lf0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:33425] helo=mail-lf0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/E3-24183-990F9665 for ; Thu, 10 Dec 2015 16:37:29 -0500 Received: by lfaz4 with SMTP id z4so66041715lfa.0 for ; Thu, 10 Dec 2015 13:37:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragonie-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=7+OMzeq05N4ZFvhOxbYzIbfMp3s4Xv+a+9rjMYs09ug=; b=Ys4Iji/AJ5BpsVQKDSWgX0wvqzo3miNVeaD6YQ+jYEt2DnfQMSv7RwWd4Udj0ZQbzC Nu6phiFLr1bkxLatU6o7x08gHHz2/jdjnFWu4OumeemFdnA2FjDrba6MN+R8GfzYenmk k3HMlkJN7qBq6TWYXZnF8YiXYJRiE4EUOzGKz5FKWcEA9ocV4PuBh2BS74pE0h/9KUxd zcGny2TB1gs/YymBCCANatNwLLSbO1EJjvYHgkKK2N860TElcyEXm4hn6Tf7t4qGMluu 4KTEhE5kHDPFNv4xdGStBDvQkEiAvfnsnHBlcXw5xJRVOV5ZHLv3fVZxqEdrzFUSYwTv e0Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=7+OMzeq05N4ZFvhOxbYzIbfMp3s4Xv+a+9rjMYs09ug=; b=TsbiZh6hdnFCUs5+x0dfU5aDeXCbey8FGM+FYufEP+YnVK9XU06/W1NpuuA3EWWxXI 76dkptwRctoyzF0GYC0/Cq6lovRMt/u7nNG9zGXE/5k6y6uDBj1QTvbM6ppVEogPBy/Y 0M3fXCm1Ev5DPoB7BBqe7Krqh5MTE8uGyDhUgxGaR4AKrBDBcwD55CzWY7iBUYjmukov s42WXoSrim18bdgIvFjY9jbbnj4UqfQ806VWnpQnuKGD44DzqKHk6HYrBJWToHcel8VS VTLRZo7bRFe/ER49CN+/MpbicSNDJAi79/cuURg7sstsIPKhzJgGRfPVg1A1f6fEmcRK Nzng== X-Gm-Message-State: ALoCoQnBTJNnZJwWysSPeJK1PkzquTF+KXn80hwYdKp2CcMzFYtks+Gf7o4fzSC7ko62wOCEQGCUHgYrw3E0krd1HBUdILR7lw== MIME-Version: 1.0 X-Received: by 10.25.22.165 with SMTP id 37mr5419490lfw.60.1449783445472; Thu, 10 Dec 2015 13:37:25 -0800 (PST) Received: by 10.114.237.230 with HTTP; Thu, 10 Dec 2015 13:37:25 -0800 (PST) Date: Thu, 10 Dec 2015 16:37:25 -0500 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a113f239e44e6f5052692037f Subject: Phar stubs and signatures From: scott@paragonie.com (Scott Arciszewski) --001a113f239e44e6f5052692037f Content-Type: text/plain; charset=UTF-8 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 --001a113f239e44e6f5052692037f--