php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57922 extract throws an error and won't open the file
Submitted: 2007-11-20 17:54 UTC Modified: 2007-11-22 13:34 UTC
From: urkle@php.net Assigned: urkle (profile)
Status: Closed Package: phar (PECL)
PHP Version: Irrelevant OS: Fedora 8
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: urkle@php.net
New email:
PHP Version: OS:

 

 [2007-11-20 17:54 UTC] urkle@php.net
Description:
------------
in cli_cmd_run_extract() there is a missing $this-> when accessing $args, thus breaking extract

Reproduce code:
---------------
Patch:
diff -ur T/pharcommand.inc phar/pharcommand.inc
--- T/pharcommand.inc	2007-11-20 17:23:27.000000000 -0500
+++ phar/pharcommand.inc	2007-11-20 17:39:35.000000000 -0500
@@ -746,7 +746,7 @@
             }
         }
         
-        $phar = $args['f']['val'];
+        $phar = $this->args['f']['val'];
         $base = $phar->getPathname();
         $bend = strpos($base, '.phar');
         $bend = strpos($base, '/', $bend);



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-22 13:34 UTC] greg at chiaraquartet dot net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC