[PEAR-BUG] Bug #16722 [Opn->WFx]: Extracting on windows-systems

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=16722&edit=1

 ID:               16722
 Updated by:       [email protected]
 Reported By:      lk at makesyourdifference dot ch
 Summary:          Extracting on windows-systems
-Status:           Open
+Status:           Wont fix
 Type:             Bug
 Package:          Archive_Zip
 Operating System: Windows XP
 Package Version:  0.1.1
 PHP Version:      5.3.0
 Roadmap Versions: 
 New Comment:

-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.


Previous Comments:
------------------------------------------------------------------------

[2009-10-21 23:05:58] halluz

Fix the Problem:
Replace line 1771 with:

&& (substr($p_path, 0, 3) != "../") && (substr($p_path,1,2)!=":/")  &&
(substr($p_path,1,2)!=":\\") ))

------------------------------------------------------------------------

[2009-10-21 22:44:41] halluz

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);

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16722&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.