Home » File Formats » Archive_Tar » Bug #1719
Report warning on unknown/unneccessary parameters
Details
| Request #1719 | Report warning on unknown/unneccessary parameters |
|---|---|
| Submitted | 2004-06-25 09:21 UTC |
| From | signup at cheaweb dot it |
| Assigned | vblavet |
| Status | Closed |
| Package | Archive_Tar |
| PHP Version | Irrelevant |
| OS | Windows 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