Modify ↓
Ticket #262 (closed defect: fixed)
Archive_Zip fails to extract on Windows
| Reported by: | Marcus Welz <marcus@…> | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.0RC1 |
| Component: | phing-tasks-ext | Version: | 2.3.1RC1 |
| Keywords: | Cc: |
Description
(Not sure whether this is the correct place to report it, but the Archive_Zip PEAR component is not maintained by anyone at the moment.)
Archive_Zip::_extractByRule() has a bug when run under Windows. The few lines after the comment ' ----- Check the path' around line 1752 will prepend "./" to the path, if a relative path was specified. It improperly checks for ' (substr($p_path,1,2)!=":/") ' to catch absolute paths on Windows, but won't catch paths that use backslashes, (e.g. "C:\mypath\").
This ticket is somewhat related to #261.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Since Archive_Zip has been superseded by File_Archive it might be wise to rewrite UnzipTask using this component.