Home » File Formats » File_Archive » Bug #4953
Extracting does not work with absolute paths
Details
| Submitted | 2005-07-31 09:39 UTC |
|---|---|
| From | meyer at labeltools dot com |
| Assigned | vincentlascaux |
| Status | Closed |
| Package | File_Archive |
| PHP Version | 5.0.3 |
| OS | WinXP |
| 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