PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_Archive » Bug #6646

var filename missing $

Details

Submitted2006-01-31 18:46 UTC
Fromsoftwarezman at gmail dot com
Assignedpfischer
StatusClosed
PackageFile_Archive
PHP Version4.3.2
OSWindows 2000
Roadmaps(Not assigned)

Comments

[2006-01-31 18:46 UTC] softwarezman at gmail dot com

Description:
------------
Line 201 in file 'Archive/Writer/Files.php' has

$this->filename = filename;

when it should be $this->filename = $filename;

Simple fix.

Test script:
---------------
Taken from website, nearly identical code (different filename, location, and using toFiles() instead of toOutput())

<?php
require_once "File/Archive.php";

// $files is an array of path to the files that must be added to the archive

File_Archive::extract(
$files,
File_Archive::toArchive("myGallery.tar", File_Archive::toFiles())
);

?>

Expected result:
----------------
Should create a tar file with no errors.

Actual result:
--------------
Notice: Use of undefined constant filname - assumed 'filename' in c:\php\pear\File\Archive\Writer\Files.php on line 201

[2007-01-08 19:06 UTC] pfischer at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Thanks and sorry for the delay!