#48257 [Tbd->Csd]: PharData throws exception with non-phar tar
| From: | saltybeagle@php.net | Date: | Mon, 19 Oct 2009 18:11:45 +0000 |
| Subject: | #48257 [Tbd->Csd]: PharData throws exception with non-phar tar | ||
| References: | 1 | Groups: | php.bugs php.doc.bugs |
| Request: | Send a blank email to php-bugs+get-143705@lists.php.net to get a copy of this message | ||
ID: 48257
Updated by: saltybeagle@php.net
Reported By: cellog@php.net
-Status: To be documented
+Status: Closed
Bug Type: PHAR related
Operating System: n/a
PHP Version: 5.3CVS-2009-05-13 (CVS)
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2009-10-19 18:11:04] svn@php.net
Automatic comment from SVN on behalf of saltybeagle
Revision: http://svn.php.net/viewvc/?view=revision&revision=289759
Log: Bug #48257 add note about phar.require_hash not affecting plain
tar files.
------------------------------------------------------------------------
[2009-05-13 20:28:23] cellog@php.net
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.
------------------------------------------------------------------------
[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