PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Archive_Tar » Bug #1719

Report warning on unknown/unneccessary parameters

Details

Request #1719Report warning on unknown/unneccessary parameters
Submitted2004-06-25 09:21 UTC
Fromsignup at cheaweb dot it
Assignedvblavet
StatusClosed
PackageArchive_Tar
PHP VersionIrrelevant
OSWindows 2000
Roadmaps(Not assigned)

Comments

[2004-06-25 09:21 UTC] signup at cheaweb dot it

Description:
------------
If you specify by mistake a wrong archive type in the constructor the code doesn't report any problems but the archive created is empty.

PEAR ver 1.3.1

Reproduce code:
---------------
$tar =& new Archive_Tar("file.tar.bz2","bz");
// "bz" is not a valid parameter but no warning is given
$tar->add("zzz.gif");
// an empty file.tar.bz2 is created

Expected result:
----------------
Some warning