| Bug #4953 | Extracting does not work with absolute paths |
| 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) |
[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.
Comments
[2005年08月15日 18:09 UTC] User who submitted this comment has not confirmed identityIf you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE. Write a message to pear-dev@lists.php.net
to request the confirmation link. All bugs/comments/patches associated with this
email address will be deleted within 48 hours if the account request is not confirmed!
[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