php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46132 rar extracts to "documents and settings" if no absolute path
Submitted: 2008-09-19 22:06 UTC Modified: 2008-09-20 16:55 UTC
From: jehy at valar dot ru Assigned:
Status: Not a bug Package: *Compression related
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jehy at valar dot ru
New email:
PHP Version: OS:

 

 [2008-09-19 22:06 UTC] jehy at valar dot ru
Description:
------------
For some magical reasons, on windows, when you use relative path for extracting, rar extracts in "Documents and Settings\UserName"...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-20 15:03 UTC] jehy at valar dot ru
Sorry, I was too tired to write a normal bug report...

Code example:
##opening,reading archive...
$entry = rar_entry_get($rar_file, $entry->name);#all ok
$t=$entry->extract(false,'.');
      if(!$t)
         echo 'Not extracted';#does not output

And the file extracts not to the current working directory but to "documents and settings/UserName" where UserName is my currently used username.
 [2008-09-20 16:55 UTC] pajoye@php.net
Please report rar bug in pecl:
http://pecl.php.net/rar
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC