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 » File_Archive » Bug #4953

Extracting does not work with absolute paths

Details

Submitted2005-07-31 09:39 UTC
Frommeyer at labeltools dot com
Assignedvincentlascaux
StatusClosed
PackageFile_Archive
PHP Version5.0.3
OSWinXP
Roadmaps(Not assigned)

Comments

[2005-07-31 09:39 UTC] meyer at labeltools dot com

Description:
------------
Obviously, File_Archive does not work with absolute paths on WinXP.

Test script:
---------------
require_once 'File/Archive.php';

$source = 'E:\upload\fallen2.zip\container_fallen.mc0';
$destination = 'E:\userdata\priv';

File_Archive::extract($source, $destination);

Expected result:
----------------
Extracting the file "container_fallen.mc0".

Actual result:
--------------
No file extracted, and no error message either.

[2006-02-16 09:43 UTC] crap at pixelabuse dot co dot uk

Description:
--------------
This does not work for me on WinXP/Apache1.3/PHP4.4

Test Script:
--------------
$archive = "d:\www\cms\modules\rss.zip/";
$dest = "d:\www\cms\modules\rss";

$ret = File_Archive::extract($archive, $dest);

Result:
--------------
Notice: Only variable references should be returned by reference in d:\www\cms\classes\File\Archive.php on line 574

Notice: Only variable references should be returned by reference in d:\www\cms\classes\File\Archive.php on line 593

File_Archive_Reader_File represents a single file. makeAppendWriter cant be executed on it