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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 06:01:32 2025 UTC