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

Bug #16722 Extracting on windows-systems
Submitted: 2009-10-22 02:44 UTC
From: halluz Assigned:
Status: Wont fix Package: Archive_Zip (version 0.1.1)
PHP Version: 5.3.0 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 20 - 9 = ?

 
 [2009-10-22 02:44 UTC] halluz (Luzius Kloeti)
Description: ------------ On the windows system, the path for unpacking zip files usually starts with C:\ or D:\ ... When extracting zip-files with the method extract(), the given path (add_path) is complemented by ./ The newly created path is ./D:\htdocs\ Test script: --------------- $obj = new Archive_Zip( 'archive.zip' ); $p_params = array( 'add_path' => realpath(dirname(__FILE__) . '/extracted') ); $res = $obj->extract($p_params);

Comments

 [2009-10-22 03:05 UTC] halluz (Luzius Kloeti)
Fix the Problem: Replace line 1771 with: && (substr($p_path, 0, 3) != "../") && (substr($p_path,1,2)!=":/") && (substr($p_path,1,2)!=":\\") ))
 [2011-07-30 15:37 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Wont fix
Thanks for the fix Luzius; but this one is unfortunately a wontfix - the zip extension does a much better job and has superceeded this package.