#48257 [Asn->Tbd]: PharData throws exception with non-phar tar

From: Date: Wed, 13 May 2009 20:28:23 +0000
Subject: #48257 [Asn->Tbd]: PharData throws exception with non-phar tar
References: 1  Groups: php.bugs php.doc.bugs 
Request: Send a blank email to php-bugs+get-137268@lists.php.net to get a copy of this message
ID: 48257 Updated by: cellog@php.net Reported By: cellog@php.net -Status: Assigned +Status: To be documented Bug Type: PHAR related Operating System: n/a PHP Version: 5.3CVS-2009-05-13 (CVS) Assigned To: cellog New Comment: fixed in HEAD, 5.3, and pecl/phar documentation needs to state that phar.require_hash does not affect plain tar files, thus: <?php $a = new PharData('sometar.tar'); ?> will not fail if sometar.tar does not have a signature. <?php $a = new Phar('sometar.phar.tar'); ?> will fail if sometar.phar.tar does not contain a signature. Previous Comments: ------------------------------------------------------------------------ [2009-05-13 06:24:06] cellog@php.net Description: ------------ pear download Net_URL php -r 'new PharData("Net_URL-1.0.15.tgz");' results in exception, tar does not have signature. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48257&edit=1

« previous php.bugs (#137268) next »