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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 20 = ?
Subscribe to this entry?

 
 [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: Fri Apr 26 04:01:30 2024 UTC