Ticket #262 (new defect)

Opened 5 months ago

Archive_Zip fails to extract on Windows

Reported by: Marcus Welz <marcus@lucidix.com> Assigned to: hans
Priority: major Milestone: 2.4.0
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


Add/Change #262 (Archive_Zip fails to extract on Windows)