Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.5

Bug #4953 Extracting does not work with absolute paths
Submitted: 2005-07-31 04:39 UTC Modified: 2006-12-24 14:52 UTC
From: meyer at labeltools dot com Assigned: vincentlascaux
Status: Closed Package: File_Archive
PHP Version: 5.0.3 OS: WinXP
Roadmaps: (Not assigned)    
Subscription  


 [2005-07-31 04: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.

Comments

 [2005-08-15 13:09 UTC] vincentlascaux
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.
 [2006-02-16 04: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